replace resumeSession with getSession

This commit is contained in:
Samuel Newman
2025-07-18 16:54:34 +03:00
parent 95ab4fa0a1
commit 13be5f0064
@@ -51,8 +51,7 @@ export function useAccountEmailState() {
refetchOnWindowFocus: true, refetchOnWindowFocus: true,
queryKey: accountEmailStateQueryKey, queryKey: accountEmailStateQueryKey,
queryFn: async () => { queryFn: async () => {
// will also trigger updates to `#/state/session` data const {data} = await agent.com.atproto.server.getSession()
const {data} = await agent.resumeSession(agent.session!)
return { return {
isEmailVerified: !!data.emailConfirmed, isEmailVerified: !!data.emailConfirmed,
email2FAEnabled: !!data.emailAuthFactor, email2FAEnabled: !!data.emailAuthFactor,