ZEROSPAM\Framework\SDK\Client\Middleware\RefreshToken\RefreshTokenMiddleware
Synopsis
class RefreshTokenMiddleware
implements
IRefreshTokenMiddleware
{
- // members
- protected IOAuthClient $client;
- // methods
- public IRefreshTokenMiddleware setClient()
- public AccessToken handleRefreshToken()
Hierarchy
Members
protected
Methods
public
- handleRefreshToken() — Take care of refreshing the token
- setClient() — Set the OAuth Client.
History
-
2018-09-11T20:07:51+00:00 (commit #c644b40)
Author: Antoine Aflalo (antoine.aflalo@zerospam.ca) / Commiter: Antoine Aflalo (antoine.aflalo@zerospam.ca)
perf(RefreshToken): Add number of tries into callbacks Used to know how many time the refreshToken has been called.
-
2018-09-11T19:29:42+00:00 (commit #11abebf)
Author: Antoine Aflalo (antoine.aflalo@zerospam.ca) / Commiter: Antoine Aflalo (antoine.aflalo@zerospam.ca)
fix(Middleware): Remove Middleware client trait Impossible to reuse for different use cases
-
2018-09-11T16:03:27+00:00 (commit #e144740)
Author: Antoine Aflalo (antoine.aflalo@zerospam.ca) / Commiter: Antoine Aflalo (antoine.aflalo@zerospam.ca)
feat(RefreshToken): Add refreshToken middleware New feature to control the refreshing of a token. Also provides a default token refresher.