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:
zooqueen
2026-09-30 15:02:03 -07:00
co-authored by Hanzo Dev
parent 10536d2de8
commit 0fe3499290
+3 -1
View File
@@ -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) {