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