Skip to content

Commit

Permalink
Deactivate idle logout (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
rvanasa committed Sep 12, 2023
1 parent 1c7ea94 commit 8ae47a3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/services/userService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ export const USER_STORE = makeObservable<User | null | undefined>();
const localIdentityProvider = `http:https://localhost:4943?canisterId=${process.env.INTERNET_IDENTITY_CANISTER_ID}`;

const clientPromise = window.indexedDB
? AuthClient.create()
? AuthClient.create({
idleOptions: {
disableIdle: true,
disableDefaultIdleCallback: true,
},
})
: Promise.resolve(undefined);

const loginIC = async (
Expand Down

0 comments on commit 8ae47a3

Please sign in to comment.