Aasu YadavOriginal post
Web Developer
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",
);
console.log(user);
if (user) {
set({ userName: user.name, userId: user.$id, userStatus: user.status });
}
} catch (error) {
console.log("error on google login ", error);
}
},
Summary
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.