TokenInvalidate
in
Indicates whether the provider is capable of invalidating access tokens (RFC-7009 or proprietary)
Tags
Table of Contents
Methods
- invalidateAccessToken() : bool
- Allows to invalidate an access token
Methods
invalidateAccessToken()
Allows to invalidate an access token
public
invalidateAccessToken([AccessToken|null $token = null ][, string|null $type = null ]) : bool
Clients shall set the optional OAuthProvider::$revokeURL for use in this method. If a token is given via $token, that token should be invalidated, otherwise the current user token from the internal storage should be used. Returns true if the operation was successful, false otherwise. May throw a ProviderException if an error occurred.
Parameters
- $token : AccessToken|null = null
- $type : string|null = null