diff options
Diffstat (limited to 'src/state/session/types.ts')
-rw-r--r-- | src/state/session/types.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/state/session/types.ts b/src/state/session/types.ts index aa8b9a99e..4621b4f04 100644 --- a/src/state/session/types.ts +++ b/src/state/session/types.ts @@ -40,4 +40,12 @@ export type SessionApiContext = { ) => void resumeSession: (account: SessionAccount) => Promise<void> removeAccount: (account: SessionAccount) => void + /** + * Calls `getSession` and updates select fields on the current account and + * `BskyAgent`. This is an alternative to `resumeSession`, which updates + * current account/agent using the `persistSessionHandler`, but is more load + * bearing. This patches in updates without causing any side effects via + * `persistSessionHandler`. + */ + partialRefreshSession: () => Promise<void> } |