[SDK] Rebuild the session core on PasswordSession behind an AtpAgent compat shim (#11343)

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Samuel Newman
2026-08-13 22:26:12 +03:00
committed by GitHub
parent 22b31c52bb
commit 97b3978fb8
35 changed files with 6871 additions and 2397 deletions
+2 -2
View File
@@ -21,7 +21,7 @@ import {
} from '#/state/queries/preferences/types'
import {createQueryKey} from '#/state/queries/util'
import {useAgent} from '#/state/session'
import {saveLabelers} from '#/state/session/agent-config'
import {saveLabelers} from '#/state/session/moderation'
import {useAgeAssurance} from '#/ageAssurance'
import {makeAgeRestrictedModerationPrefs} from '#/ageAssurance/util'
import {useAnalytics} from '#/analytics'
@@ -53,7 +53,7 @@ export function usePreferencesQuery() {
const res = await agent.getPreferences()
// save to local storage to ensure there are labels on initial requests
void saveLabelers(
saveLabelers(
agent.did,
res.moderationPrefs.labelers.map(l => l.did),
)