Skip to content

Commit

Permalink
feat: remove reset call even later
Browse files Browse the repository at this point in the history
  • Loading branch information
thoreyjona committed Sep 6, 2024
1 parent 50df0df commit eb298bc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apps/native/app/src/stores/auth-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,6 @@ export const authStore = create<AuthStore>((set, get) => ({
const userNationalId = get().userInfo?.nationalId
await clearPasskey(userNationalId)

// Reset home screen widgets
preferencesStore.getState().resetHomeScreenWidgets()

const appAuthConfig = getAppAuthConfig()
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const tokenToRevoke = get().authorizeResult!.accessToken!
Expand All @@ -228,6 +225,8 @@ export const authStore = create<AuthStore>((set, get) => ({
}),
true,
)
// Reset home screen widgets
preferencesStore.getState().resetHomeScreenWidgets()
return true
},
}))
Expand Down

0 comments on commit eb298bc

Please sign in to comment.