Keeps the user signed in across the whole app, in step with the other tabs and with the server. App mounts it near the root.

Functions

f
AuthProvider(unnamed 0: AuthProviderProps): React.JSX.Element

Provides AuthContext. The session starts as the stored one and follows it when another tab changes it. The server checks it on mount and whenever the tab regains focus: a 401 ends it, and a user or settings changed on the server replace the stored ones. A session from before media tokens gets one.

Interfaces