Skip to content

Commit

Permalink
fix(auth): fix passport authentication (#1334)
Browse files Browse the repository at this point in the history
  • Loading branch information
garrappachc authored Oct 29, 2021
1 parent 149308c commit db26cdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/auth/controllers/auth.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
Logger,
} from '@nestjs/common';
import { HttpAdapterHost } from '@nestjs/core';
import { authenticate } from 'passport';
import * as passport from 'passport';
import { Environment } from '@/environment/environment';
import { AuthService } from '../services/auth.service';
import { User } from '../decorators/user.decorator';
Expand Down Expand Up @@ -35,7 +35,7 @@ export class AuthController {
this.adapterHost.httpAdapter?.get(
'/auth/steam/return',
(req, res, next) => {
return authenticate('steam', async (error, player: Player) => {
return passport.authenticate('steam', async (error, player: Player) => {
const url =
req.cookies?.[redirectUrlCookieName] || this.environment.clientUrl;

Expand Down

0 comments on commit db26cdf

Please sign in to comment.