mirror of
https://github.com/hanzoai/id.git
synced 2026-10-16 18:38:15 +00:00
A sign-in bounced from onboarding returns to onboarding; every other signed-in visit goes to the brand's main app.
Co-authored-by: Hanzo Dev <[email protected]>
This commit is contained in:
@@ -34,9 +34,11 @@ export function Portal({
|
||||
if (!alive) return
|
||||
// A signed-in person goes to the brand's main app, which carries the plan
|
||||
// step; the launcher below renders only for a brand that names no app.
|
||||
// A sign-in bounced from /onboarding (its token_bounce guard is set) goes
|
||||
// back there to finish the plan step.
|
||||
const home = appsFor(org.orgId)[0]?.href
|
||||
if ((account || justSignedIn) && home) {
|
||||
window.location.replace(home)
|
||||
window.location.replace(sessionStorage.getItem('onboarding.token_bounce') ? '/onboarding' : home)
|
||||
return
|
||||
}
|
||||
if (account) {
|
||||
|
||||
Reference in New Issue
Block a user