Skip to content

Commit

Permalink
google login -- error [clni503px000eyr0kizrhem11]
Browse files Browse the repository at this point in the history
  • Loading branch information
pauloendoh committed Oct 22, 2023
1 parent e505e02 commit c32aa24
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/domains/auth/AuthController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ export class AuthController {

// After successful authentication at google page...
@Get("/google/callback")
@UseBefore(passport.authenticate("google"))
@UseBefore(
passport.authenticate("google", {
session: false,
})
)
async googleCallback(@Req() req: MyAuthRequest, @Res() res: Response) {
const redirectTo =
await this.authService.saveGoogleTokenAndReturnRedirectURL(req.user)
Expand Down
1 change: 1 addition & 0 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ dataSource
})
)
app.use(cookieParser())

// initialize passport
app.use(passport.initialize())

Expand Down

0 comments on commit c32aa24

Please sign in to comment.