In the client apps (Web, Desktop, Mobile): When an unauthenticated visitor clicks "Login with SSO" on an /invite/:code landing screen, ensure POST /v1/auth/sso/start includes redirect_to: window.location.pathname (or an explicit invite_code parameter) so it gets preserved in the OAuth statePayload.
In SsoService (completeLogin / resolveUserFromClaims): Extract the invite code from statePayload.redirectTo if it matches /invite/:code and prioritize it:
This ensures the user seamlessly lands inside the specific invited guild across all platforms, while preserving the static FLUXER_AUTO_JOIN_INVITE_CODE fallback for generic root signups.
Thread
Comment by errno0x0d
redirect_to: window.location.pathname(or an explicitinvite_codeparameter) so it gets preserved in the OAuthstatePayload.statePayload.redirectToif it matches/invite/:codeand prioritize it:FLUXER_AUTO_JOIN_INVITE_CODEfallback for generic root signups.