mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
Fix STACK-BACKEND-69
This commit is contained in:
parent
3cd66c4c58
commit
6272cdf8dc
@ -159,6 +159,9 @@ export abstract class OAuthBaseProvider {
|
||||
if (error?.error === 'access_denied') {
|
||||
throw new KnownErrors.OAuthProviderAccessDenied();
|
||||
}
|
||||
if (error?.error === 'invalid_client') {
|
||||
throw new StatusError(400, `Invalid client credentials for this OAuth provider. Please ensure the configuration in the Stack Auth dashboard is correct.`);
|
||||
}
|
||||
throw new StackAssertionError(`Inner OAuth callback failed due to error: ${error}`, { params, cause: error });
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user