Skip to content
Back

google auth error

  • 0
  • Self Hosted
  • Web
Aasu Yadav
12 Apr, 2024, 16:12

i am trying to test aut on localhost but when google page to login and i select the account after that redirect to this error

{"message":"There was an error processing your request. Please check the inputs and try again.","code":400,"type":"general_bad_request","version":"0.12.148"}

googleLogin: async () => { try { const user = await account.createOAuth2Session( "google", "http://localhost:5173/dd", "http://localhost:5173/failure",

TypeScript
  );
  console.log(user);
  if (user) {
    set({ userName: user.name, userId: user.$id, userStatus: user.status });
  }

} catch (error) {
  console.log("error on google login ", error);
}

},

TL;DR
Developers are experiencing an error with Google authentication on localhost. The Appwrite logs show a 400 error. The issue might be with the inputs. The code snippet provided may be the cause of the problem, specifically with the redirect URIs.
ideclon
12 Apr, 2024, 16:31

Do you see anything in the Appwrite logs?

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