Merge pull request #7893 from appwrite/fix-oauth-error-code

Fix OAuth error code
This commit is contained in:
Eldad A. Fux 2024-04-01 18:36:55 +02:00 committed by GitHub
commit 532ed5b340
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -639,7 +639,7 @@ return [
Exception::PROJECT_PROVIDER_UNSUPPORTED => [
'name' => Exception::PROJECT_PROVIDER_UNSUPPORTED,
'description' => 'The chosen OAuth provider is unsupported. Please check the <a href="/docs/client/account?sdk=web-default#accountCreateOAuth2Session">Create OAuth2 Session docs</a> for the complete list of supported OAuth providers.',
'code' => 501,
'code' => 400,
],
Exception::PROJECT_INVALID_SUCCESS_URL => [
'name' => Exception::PROJECT_INVALID_SUCCESS_URL,