@annalib/anna-cognito-lib 2.2.40 → 2.2.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -211,8 +211,8 @@ class AnnaLibAuthService {
211
211
  this.loginErrorMessage = null;
212
212
  }
213
213
  setAccessAndIDTokens(token) {
214
- this.consumingProjectAuthService.accessToken = token.accessToken.toString();
215
- this.consumingProjectAuthService.IdToken = token.idToken;
214
+ this.consumingProjectAuthService.accessToken = token?.accessToken?.toString();
215
+ this.consumingProjectAuthService.IdToken = token?.idToken;
216
216
  }
217
217
  async getAllCognitoTokenAndGroups(token) {
218
218
  this.setAccessAndIDTokens(token);
@@ -506,7 +506,6 @@ class AnnaLoginComponent {
506
506
  this.consumingProjectSSOLoginService = consumingProjectSSOLoginService;
507
507
  }
508
508
  ngOnInit() {
509
- this.authService.consumingProjectAuthService.isLoggingIn = false;
510
509
  this.constants = LoginConstant;
511
510
  this.onIntialiseForm();
512
511
  }