oauth2-server-php
oauth2-server-php copied to clipboard
Token revocation parameters
Hello.
I want to use the revokeToken() function from TokenController to logout user from my application. In previous version of your library that function had 2 parameters: $token (string) and $token_type_hint (string). In new version of the library parameters changed to $request (RequestInterface type) and $response (ResponseInterface type). I looked for any description or examples of
new parameters usage, but without success.
Would you help me to understand how should i use this function with new parameters if previously i used such a part of code:
$server->getTokenController()->revokeToken($token['access_token'], 'access_token');
Thank you in advance!