Add a way to refresh token #55
Labels
documentation
Improvements or additions to documentation
elixir
Pull requests that update Elixir code
enhancement
New feature or enhancement of existing functionality
As per #54 , this package should have a way for people to refresh their tokens and a way of knowing if they are invalid or expired.
Typically, when a token is expired, the web application should try to refresh it and get the new one seamlessly in case a request to a protected resource fails. Having a function that refreshes the token given an access token should make it easy for people to do so.
The package calls the
/authorize
end point and receives an access token.According to https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth2-auth-code-flow, we should be able to also return the refresh token.
The client user should have access to the refresh token, as well.
The text was updated successfully, but these errors were encountered: