You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
UserGreen
committed
feat(auth): prompt relogin when restored session has no CSRF token
A session restored from a persisted access token on cold start never
passes through login or refresh, so no CSRF token is ever set and every
mutating request fails with a 403. On launch for a signed-in session,
try to re-establish CSRF via a refresh; if that is not possible, tell
the user the session is broken and to log in again.
0 commit comments