mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-01 16:08:30 +00:00
After Google sign-in, brand-new accounts now land on /welcome instead of the set-password page; returning users go to their normal destination. "New user" is detected via the SSO response's username_not_yet_customized (forced to false by the backend for returning Google logins, so repeat logins never re-trigger it). A per-user-token localStorage marker guards against the rare email→Google-link edge case so welcome shows at most once per account. - session.ts: add consumeNewUserWelcome(isNewUser) helper - login / signup-form / signup-cta-modal: route via the helper