diff --git a/twake/frontend/src/app/features/auth/provider/oidc/oidc-auth-provider-service.ts b/twake/frontend/src/app/features/auth/provider/oidc/oidc-auth-provider-service.ts index 0eed236a..7343033c 100644 --- a/twake/frontend/src/app/features/auth/provider/oidc/oidc-auth-provider-service.ts +++ b/twake/frontend/src/app/features/auth/provider/oidc/oidc-auth-provider-service.ts @@ -68,7 +68,7 @@ export default class OIDCAuthProviderService this.logger.debug('Redirect signout'); this.signOut(); } - + this.userManager.events.addUserLoaded((user: any, ...args) => { this.logger.debug('New User Loaded:', user, args); this.logger.debug('Acess_token: ', user.access_token); @@ -85,13 +85,14 @@ export default class OIDCAuthProviderService this.userManager.events.addSilentRenewError((...args) => { console.error('Silent Renew Error:', args); }); + } return this; } async signIn(): Promise { this.logger.info('Signin'); - + try { await this.userManager!.signinRedirectCallback(); } catch (e) {