oauth2-server-php icon indicating copy to clipboard operation
oauth2-server-php copied to clipboard

Token revocation parameters

Open MaximumRGB opened this issue 4 years ago • 0 comments

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!

MaximumRGB avatar Feb 09 '21 13:02 MaximumRGB