Angular-auth-oidc-client: Get if user are unauthtentficated by the reason MaxOffsetExpired

Created on 16 Oct 2020  路  2Comments  路  Source: damienbod/angular-auth-oidc-client

Hi how i get the info that indicates the user are not authentificates by reason MaxOffsetExpired ?
Thanks

question

Most helpful comment

You can subscribe to events from PublicEventsService:

this.publicEventService
  .registerForEvents()
  .pipe(filter(notification => notification.type === EventTypes.NewAuthorizationResult))
  .subscribe(event => {
    if (event.value.validationResult === ValidationResult.MaxOffsetExpired) {
      // do something
    }
  });

All 2 comments

Hi any solution ? Thanks

You can subscribe to events from PublicEventsService:

this.publicEventService
  .registerForEvents()
  .pipe(filter(notification => notification.type === EventTypes.NewAuthorizationResult))
  .subscribe(event => {
    if (event.value.validationResult === ValidationResult.MaxOffsetExpired) {
      // do something
    }
  });
Was this page helpful?
0 / 5 - 0 ratings

Related issues

jhossy picture jhossy  路  4Comments

brentos99 picture brentos99  路  4Comments

Expelz picture Expelz  路  4Comments

Roman1991 picture Roman1991  路  4Comments

toddtsic picture toddtsic  路  4Comments