ref: remove unused params
This commit is contained in:
parent
2e22e0bb4d
commit
c2028d9309
@ -3,7 +3,7 @@ import { AuthGuard } from "@nestjs/passport";
|
||||
|
||||
@Injectable()
|
||||
export class DiscordAuthGuard extends AuthGuard("discord") {
|
||||
handleRequest(err, user, info, context) {
|
||||
handleRequest(err, user, info) {
|
||||
if (err || !user) {
|
||||
const errorMessage = info?.message || "Authentication failed";
|
||||
throw new UnauthorizedException(errorMessage);
|
||||
|
Loading…
Reference in New Issue
Block a user