mirror of
https://github.com/hcengineering/platform.git
synced 2025-06-02 13:52:40 +00:00
parent
adb286676e
commit
a27075b29e
@ -55,7 +55,7 @@ export function registerGithub (
|
|||||||
const state = safeParseAuthState(ctx.query?.state)
|
const state = safeParseAuthState(ctx.query?.state)
|
||||||
const branding = getBranding(brandings, state?.branding)
|
const branding = getBranding(brandings, state?.branding)
|
||||||
|
|
||||||
passport.authenticate('github', {
|
await passport.authenticate('github', {
|
||||||
failureRedirect: concatLink(branding?.front ?? frontUrl, '/login'),
|
failureRedirect: concatLink(branding?.front ?? frontUrl, '/login'),
|
||||||
session: true
|
session: true
|
||||||
})(ctx, next)
|
})(ctx, next)
|
||||||
|
@ -58,8 +58,7 @@ export function registerGoogle (
|
|||||||
measureCtx.info('With branding', { branding })
|
measureCtx.info('With branding', { branding })
|
||||||
const failureRedirect = concatLink(branding?.front ?? frontUrl, '/login')
|
const failureRedirect = concatLink(branding?.front ?? frontUrl, '/login')
|
||||||
measureCtx.info('With failure redirect', { failureRedirect })
|
measureCtx.info('With failure redirect', { failureRedirect })
|
||||||
|
await passport.authenticate('google', {
|
||||||
passport.authenticate('google', {
|
|
||||||
failureRedirect,
|
failureRedirect,
|
||||||
session: true
|
session: true
|
||||||
})(ctx, next)
|
})(ctx, next)
|
||||||
|
Loading…
Reference in New Issue
Block a user