wohali / oauth2-discord-new

New Discord Provider for the OAuth 2.0 Client
MIT License
118 stars 22 forks source link

Revoking Token #30

Closed EncryptSL closed 3 years ago

EncryptSL commented 3 years ago

Hello, @wohali i have question, how revoking token ? When user logout ?

Thanks for your answer. You can implement this ?

wohali commented 3 years ago

You'll need to implement this yourself via a properly formatted POST to the /api/oauth2/token/revoke endpoint.

The PHPLeague OAuth2 Client doesn't natively have support for token revocation, so my library can't subclass to implement that.

Best of luck!