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);
}
},
Do you see anything in the Appwrite logs?
Recommended threads
- 1:1 relationship doesn’t sync after re-a...
Hi, I’m trying to use a two-way one-to-one relationship. It works fine when I create a record with the relationship set, and it also works when I unset it. But ...
- Failed to create function
Hey everyone 👋 I'm having an issue creating Functions on Appwrite Cloud and I'm not sure if it's a platform bug or something wrong in my project. When I try t...
- Upsert with setting permissions
Hi there, I am using self-hosted appwrite v1.7.4 and trying to use the bulk update stuff that was released with 1.7.x. Unfortunally I found that there is an ser...