Files
dotcom-arcade/frontend/src/lib/trustedLogin.ts
T
branderson a6adc61627 feat(auth): sign in through a trusted proxy and let those users set a password
On load, a signed-out visitor first asks the backend to sign them in as the
user an authenticating proxy vouches for, before guest mode or a login
redirect takes over; an explicit logout skips this for the rest of the tab.
Settings gains a password card for signed-in users, where a proxy-signed-in
user can set a password without the current one to log in without the
proxy.
2026-10-12 01:05:40 -07:00

6 lines
224 B
TypeScript

/**
* Set for the rest of the tab's session after an explicit logout, so the app
* doesn't sign straight back in through the trusted proxy header.
*/
export const SKIP_TRUSTED_LOGIN_KEY = 'flashpoint-skip-trusted-login';