Skip to content

Commit 88f6b3b

Browse files
committed
missing note for revoking tokens
Signed-off-by: Jurj-Bogdan <bogdanjurj11@gmail.com>
1 parent f43ec97 commit 88f6b3b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

docs/book/v6/security/oauth2-security.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ The configuration for OAuth2 tokens can be edited in `config/autoload/local.php`
1717
By default, the lifetimes of the `access` and `refresh` tokens are set to one day and one month respectively.
1818
Make sure to adjust their values in accordance to your application's needs, with lower values being generally safer.
1919

20+
> If your application requires it, you can revoke user OAuth tokens before their expiration by making use of the `revokeTokens` method of `UserService`.
2021
> Read more about the available [configuration options](https://docs.mezzio.dev/mezzio-authentication-oauth2/v1/intro/#configuration).
2122
2223
## Autogeneration of Cryptographic Keys

0 commit comments

Comments
 (0)