[go: nahoru, domu]

Skip to content

Commit

Permalink
Fix oAuth (hcengineering#5885)
Browse files Browse the repository at this point in the history
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
  • Loading branch information
BykhovDenis committed Jun 21, 2024
1 parent adb2866 commit a27075b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pods/authProviders/src/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function registerGithub (
const state = safeParseAuthState(ctx.query?.state)
const branding = getBranding(brandings, state?.branding)

passport.authenticate('github', {
await passport.authenticate('github', {
failureRedirect: concatLink(branding?.front ?? frontUrl, '/login'),
session: true
})(ctx, next)
Expand Down
3 changes: 1 addition & 2 deletions pods/authProviders/src/google.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ export function registerGoogle (
measureCtx.info('With branding', { branding })
const failureRedirect = concatLink(branding?.front ?? frontUrl, '/login')
measureCtx.info('With failure redirect', { failureRedirect })

passport.authenticate('google', {
await passport.authenticate('google', {
failureRedirect,
session: true
})(ctx, next)
Expand Down

0 comments on commit a27075b

Please sign in to comment.