mauriciovigolo / keycloak-angular

Easy Keycloak setup for Angular applications.
MIT License
730 stars 280 forks source link

Configure updateToken minValidity in HTTP Interceptor #557

Open majuabir opened 7 months ago

majuabir commented 7 months ago

Bug Report or Feature Request (mark with an x)

- [ ] bug report -> please search for issues before submitting
- [x] feature request

Currently, the HTTP Interceptor checks for if the token needs to be updated using a call to updateToken() with no minValidity definition which means it any HttpClient requests will only update the token if the token will expire within 5 seconds of updateToken's invocation. Can we somehow set the minValidity of updateToken() to something besides the default of 5 seconds?