Support for auth flow for apps (get temporary_authorization_code
, access_token
, refresh_token
)
#53
Labels
temporary_authorization_code
, access_token
, refresh_token
)
#53
Description
Handling the refresh token mechanism could be cumbersome. Let's simplify it for developers.
Context
Developers are free to decide when access tokens issued for their apps will expire. The default is 7 days.
On the OAuth payload, we send back an
expires_in
property to tell when the token expires. This is a timestamp.We also send back a
refresh_token
that needs to be used to request a new token.Possible Solution
two functions, one to check if there is a need to renew token, and one to renew it.
client.needToRefreshToken(expires_in)
client.refreshToken(refresh_token)
##Questions
Should we rewrite the
Client
object to store also theclient id
andclient secret
details about an app?What should be the interface for those functions?
The text was updated successfully, but these errors were encountered: