bshaffer / oauth2-server-php

A library for implementing an OAuth2 Server in php
http://bshaffer.github.io/oauth2-server-php-docs
MIT License
3.26k stars 950 forks source link

Token revocation parameters #995

Open MaximumRGB opened 3 years ago

MaximumRGB commented 3 years ago

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!