Introduce contracts for refreshing and revoking tokens #1032
itambek-godaddy
started this conversation in
Ideas
Replies: 1 comment
-
I've been wondering about this as well. In Socialite's AbstractProvider, there is a |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It looks like a few providers are implementing token refreshing and revoking support, but there is no contract/interface which they implement. This can lead to different APIs across the providers, for example:
refreshToken
method, which returns the rawResponseInterface
getRefreshTokenResponse
method, which returns the parsed body as an arrayIt would be great to have contracts/interfaces in the Manager repo, so that we would have consistent method names and return values across different providers.
I think these interfaces should be opt-in, so that the individual providers can choose wether to implement them or not.
Beta Was this translation helpful? Give feedback.
All reactions