Skip to content

Commit

Permalink
fix: disable idle timeout for II auth client
Browse files Browse the repository at this point in the history
  • Loading branch information
ilbertt committed May 18, 2024
1 parent c9bb4f6 commit 54b5467
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/contexts/IcContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,11 @@ export const IcProvider: React.FC<IcProviderProps> = ({ children }) => {

setIsLoading(true);

const authClient = await AuthClient.create();
const authClient = await AuthClient.create({
idleOptions: {
disableIdle: true,
}
});

return new Promise<[DelegationIdentity, BackendActor]>((resolve, reject) => {
authClient.login({
Expand Down

0 comments on commit 54b5467

Please sign in to comment.