angular-auth-oidc-client icon indicating copy to clipboard operation
angular-auth-oidc-client copied to clipboard

[Bug]: why does id token expiry check performs during silent refresh

Open nishadthajudeen001 opened this issue 3 years ago • 6 comments

What Version of the library are you using? Version11

Describe the bug Why do we check hasIdTokenExpired during silent token refresh? can we avoid this check since we dont really need this once app is logged in. Only access token is refreshed silently to authenticate the APIs periodically-token-check.service.ts - const idTokenHasExpired = this.authStateService.hasIdTokenExpired();

This is for Angular SPA app with implicit flow

nishadthajudeen001 avatar Feb 25 '22 14:02 nishadthajudeen001

shall we add a PR with a new OpenIdConfiguration to exclude this check in version11? please advise

nishadthajudeen001 avatar Feb 25 '22 14:02 nishadthajudeen001

@damienbod did you get a chance to check this?

nishadthajudeen001 avatar Mar 04 '22 12:03 nishadthajudeen001

@damienbod gentle reminder on this ask.

nishadthajudeen001 avatar Mar 22 '22 06:03 nishadthajudeen001

This should be fixed in version 13, can you update?

Greetings Damien

damienbod avatar Mar 24 '22 14:03 damienbod

@damienbod Sorry for the late reply. does version 13 has dependency with Angular 13? can we use this version with Angular11 APP?

nishadthajudeen001 avatar Apr 18 '22 15:04 nishadthajudeen001

yes

damienbod avatar Apr 18 '22 15:04 damienbod

Closing as there hasn't been any response from the issue author. Please re-open if you are still seeing problems here.

FabianGosebrink avatar Dec 08 '22 13:12 FabianGosebrink