I follow the steps in https://www.appwrite.io/blog/post/set-up-google-auth-appwrite-react one by one. I do not get any errors during the process. That being said, as soon as I run the application and go to my localhost, I see the errors in the screenshot. The errors come from these lines which are copy-paste from the tutorial:
export const getUser = async () => {
try {
return await account.get()
} catch (error) {
console.error(error)
}
}
When I click on the login button and enter my credentials, I get the Appwrite loading screen with this path https://cloud.appwrite.io/console/auth/oauth2/success?[project id]......
with 401 Unauthorized error in the browser console.
I am lost as I do not take any liberty in the steps as I take. I will appriciate any guidance.
When I check the Users tab of the Auth section, I see the email address that I used for logging in added to the Users list So the login credentials were recognized by Appwrite. It is my UI and the browser console that give me errors.
Recommended threads
- Bulk delete failed with 401
- I created a transaction to bulk delete rows in a table has `done` equal `true` follow documentation. But when run, it returns 401 unauthorized error as screen...
- Google Auth not working in a React App
Authentication with Google has failed. It redirects back to the signin route in React. Attached screenshots for configuration of Google console and Appwrite Go...
- Dokploy docker compose
Hey guys hope y'all doing well, I was wondering if anyone could share a working 1.8.0 docker-compose that works with Dokploy I tried making it but it just does...