
I've tried many things: referred blogs,videos but it still doesnt work properly.
Here's the login function i'm using within my appwrite.ts file: export const loginWithGoogle = async () => { try { await account.createOAuth2Session( OAuthProvider.Google, 'http://localhost:3000/home', 'http://localhost:3000/fail' )
} catch (error) {
console.error('OAuth login error:', error);
}
}
It suddenly worked and an entry was made into the "Auth" in my appwrite dashboard but I couldnt access any session params. I've attached an image of the error as well as my Google cloud console page. Just to clarify, as I press a button it does show me the google OAuth popup but after I select an account it throws the above error. ( Using Next 14 app router, appwrite v16.0.2)
Recommended threads
- Sharing cookies
Hi, I’m using Appwrite Cloud, and I have a setup where my Appwrite backend is hosted on a subdomain (e.g., api.example.com), while my frontend (Next.js app) and...
- Flutter OAuth2 Google does not return to...
When the flow starts, the browser opens, I select an account, and it keeps showing: """ Page not found The page you're looking for doesn't exist. `general_rout...
- Organization not exists anymore
Hello! We have a problem with a cloud database. We are on the Free plan, but after a refresh the site wants me to create a new organisation, and I not see the c...
