mirror of
https://github.com/hcengineering/platform.git
synced 2025-05-28 19:08:01 +00:00
parent
adb286676e
commit
a27075b29e
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user