ref: remove unused params

This commit is contained in:
M1000fr 2024-12-02 19:24:30 +01:00
parent 2e22e0bb4d
commit c2028d9309

View File

@ -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);