
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
- SSR Image Previews
I am using the SSR guide (with SvelteKit) to use Appwrite on both the server and the client. I do this by also passing the cookie back to the client and creatin...
- Multiple Set-Cookie headers collapsed on...
I’m deploying a Next.js 15 app to Appwrite → Deploy → Sites. In app/api/auth/login/route.ts I try to set 3 cookies. Variant A (manual headers): const headers ...
- can't send emails
i explored the docs and it says Messaging.CreateEmail() but this function does not exist , i installed appwrite on next js env everything works fine except thi...
