Glue API: Delete expired refresh tokensEdit on GitHub
You are browsing a previous version of the document. The latest version is 202212.0.
After an authentication refresh token is revoked or expires, it remains in the database.
For security reasons and to reduce the database storage space, we recommend deleting the tokens by setting their lifetime. Once they have a lifetime, you can configure a cron job to delete them automatically or do it manually.
To configure the lifetime of refresh tokens, extend the
Spryker\Shared\Oauth\OauthConfig class on a project level.
To configure the cron job to delete the tokens with expired lifetime, configure the time interval for the job via the
To delete the tokens with expired lifetime manually, run the command:
For submitting the form