replace resumeSession with getSession
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user