auth.ts to handle my "maintenance" mode. To explain it simply, I am creating a maintenance mode that I can activate. If its activated, only certain users are allowed to log in or register. It is working, but the problem I'm having is with the APIError./api/auth/callback/discord?code=... that it currently does.mapProfileToUser in the discord provider config, then check the needed info to throw an APIError and redirect to a custom error page: