Browse Source

Add idle options

pull/1080/head
Thomas 3 years ago
parent
commit
1afa54176d
  1. 7
      apps/client/src/app/services/internet-identity.service.ts

7
apps/client/src/app/services/internet-identity.service.ts

@ -14,7 +14,12 @@ export class InternetIdentityService implements OnDestroy {
public constructor(private http: HttpClient) {} public constructor(private http: HttpClient) {}
public async login(): Promise<OAuthResponse> { public async login(): Promise<OAuthResponse> {
const authClient = await AuthClient.create(); const authClient = await AuthClient.create({
idleOptions: {
disableDefaultIdleCallback: true,
disableIdle: true
}
});
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
authClient.login({ authClient.login({

Loading…
Cancel
Save