Skip to content

Centralize Authentication Errors Across Application #823

Answered by rcoh
raunakdoesdev asked this question in Q&A
Discussion options

You must be logged in to vote

I think your best approach would be to look at the expiry() of the returned credentials and trigger a refresh automatically—if you implement your code as a credential provider that sets expiry properly on the returned credentials, this should happen automatically because the cache will trigger a refresh before the credentials expire.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@raunakdoesdev
Comment options

Answer selected by jmklix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants