manfredsteyer / angular-oauth2-oidc

Support for OAuth 2 and OpenId Connect (OIDC) in Angular.
MIT License
1.9k stars 688 forks source link

Token expired event for Refresh Token #1282

Open shankaryadavy9 opened 1 year ago

shankaryadavy9 commented 1 year ago

Is your feature request related to a problem? Please describe. I want to show a popup to the user when it's idle more than the refresh token expiry. So if the user wants to continue working, they can click on the button and refresh the token before it expires. But the problem is there is no expire event for the refresh token like how we have for the id token and access token.

image

Describe the solution you'd like Please add an expiry event for the refresh token as well.

FrEaKmAn commented 1 year ago

Are you sure? Because I get

{
     type: "token_refreshed"
}
shankaryadavy9 commented 1 year ago

Thanks, @FrEaKmAn . But I am talking about an expiry event for a refresh token not a refresh event.

gabrielemilan commented 1 year ago

Thanks, @FrEaKmAn . But I am talking about an expiry event for a refresh token not a refresh event.

Hello, I'm interested in it too. Did you manage to get the refresh token expiration?