Skip to content
Back

Appwrite Auth Issue:

  • 0
  • Auth
ASHQKING
11 Aug, 2025, 06:17

domain.com/login?error=%7B"message"%3A"Failed+to+obtain+access+token.+The+Google+OAuth2+provider+returned+an+error%3A+invalid_client%3A+Unauthorized"%2C"type"%3A"user_oauth2_unauthorized"%2C"code"%3A401%7D#

Even After login it it says OAuth callback error: Error: OAuth session could not be established.

TL;DR
Developers are facing an Auth issue on Appwrite with Google and Discord logins, even though they are configured correctly. The error message indicates OAuth session creation problems. The error code 401 suggests an "invalid_client: Unauthorized" error. To resolve the issue, developers should recheck their OAuth configuration and ensure the client ID and secrets are accurate.
ASHQKING
11 Aug, 2025, 06:23

@Steven

ASHQKING
11 Aug, 2025, 06:31

it says: OAuth session was not created. Please try logging in again.

ASHQKING
11 Aug, 2025, 06:32

@Chirag Aggarwal

ASHQKING
11 Aug, 2025, 06:42
ASHQKING
11 Aug, 2025, 06:42

I am building project and completely using Appwrite Cloud for our backend, but having issues in Auth system

ASHQKING
11 Aug, 2025, 06:43

I am using Google and Discord Login, and configured in Console perfectly. but still having these errors..

ASHQKING
11 Aug, 2025, 06:43

@Khushboo

Chirag Aggarwal
11 Aug, 2025, 06:51

can you please share your code snippet? and more details about the error

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more