feat: modules and resources domains, drop removed domains, regenerated models
This commit is contained in:
@@ -70,9 +70,9 @@ interface LoginViaAppleResponse { accessToken?: string; refreshToken?: string }
|
||||
interface LoginViaCustomResponse { accessToken?: string; refreshToken?: string }
|
||||
```
|
||||
|
||||
On success both tokens are saved to the client's `TokenStore`, the runtime
|
||||
starts (domains warmed, scenario engine restored, `player_login` event fired),
|
||||
and the state flips to `'signed-in'`.
|
||||
On success both tokens are saved to the client's `TokenStore`, player and
|
||||
catalog are warmed, the revision poll starts, and the state flips to
|
||||
`'signed-in'`.
|
||||
|
||||
## Identity linking
|
||||
|
||||
@@ -127,8 +127,8 @@ type AuthStateListener = (state: AuthState) => void;
|
||||
- `isAuthenticated` is `true` while an access token is present in the token store.
|
||||
- `onAuthStateChange` fires the listener **immediately** with the current state
|
||||
and returns an unsubscribe function.
|
||||
- `logout()` clears tokens, stops the runtime (sync poll, scenario runs,
|
||||
cached domain data), and emits `'signed-out'`.
|
||||
- `logout()` clears tokens, stops the revision poll, drops cached domain
|
||||
data, and emits `'signed-out'`.
|
||||
|
||||
## Token refresh (automatic, transport level)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user