Delete tokens along with the user

Created on 17 November 2023, 7 months ago

Problem/Motivation

Hello, when deleting a user, his tokens are not deleted and when requesting his token, the server returns code 500, instead of 401 with an error:

The website encountered an unexpected error. Please try again later.

League\OAuth2\Server\Exception\OAuthServerException: Client authentication failed in League\OAuth2\Server\Exception\OAuthServerException::invalidClient() (line 154 of /var/www/vendor/league/oauth2-server/src/Exception/OAuthServerException.php).

Proposed resolution

I suggest deleting access/refresh tokens when deleting a user.

πŸ› Bug report
Status

Closed: duplicate

Version

5.2

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024