If a user is linked to any OAuth accounts, and then that user is deleted, the OAuth link associations for that user remains in the auth_provider_oauth_token_account_assoc table. If the user tries to log in again using OAuth, an exception with an AUTH_PROVIDER_OAUTH_ERROR_INVALID_ENTRY message is thrown.
Steps to reproduce:
- Link a user using OAuth. A row is created in the oauth token account assoc table.
- Delete that user.
- Try to login as that user using OAuth.
- Exception is thrown.