Hey team,
When banned users try to log in again, via Google, they do not see the User is banned error, but instead they get an unknown error.
The user reports an issue where banned users attempting to log in via Google receive an unknown error instead of a 'User is banned' message. The error details are present in the URL fragment, but the code is not handling it correctly. The user suggests a code modification to address this and points out a documentation gap in handling these errors for Next.js.
Is it actually unknown error or is that what your logic would display. If you look at the return response or the logs for auth do you actually see access_denied?
Ah, I see the error is in the url like this: /auth/error#error=access_denied&error_code=user_banned&error_description=User+is+banned&sb=
the code is looking for query params, not hashtag