I am trying to create a simple login with traditional auth setup where there's a login/register for email and password and also Oauth like google, facebook and discord.
I am trying to mix the two on single page first before separating them so i can work on same file.
Goal: Login successfully both email+password and OAuth method and redirect user to logged after successfully login in or register.
What's happening: Login/register work on both method, email password successfully redirecting to logged in or as logged in, while OAuth user successfully register based on record in appwrite auth users dashboard
Issue Summary: OAuth is not redirecting as "logged in"
My Reference Docs:
- https://appwrite.io/docs/products/auth/email-password
- https://appwrite.io/docs/products/auth/oauth2#profile
- https://appwrite.io/docs/references/cloud/client-web/account#createOAuth2Session
Source Code:
Project Structure:
- Nextjs 15.1.3 (Pages Directory, JS)
- Appwrite ^14.0.1
- React 19
Recommended threads
- Database Write Limits hit
Hello Appwrite Admins, I'm a GitHub Education user, and about a week ago, my database was really badly optimized, resulting in about 600k writes in a single day...
- Help: Domain krtrim.tech Blocked on Fast...
Hi, I'm trying to add my domain krtrim.tech (and subdomain) in Appwrite, but I'm getting this error: Failed to add domain to Fastly: {"msg":"Bad request","deta...
- [CLOSED] Any known issues curerntly? dat...
Hi, Any known issues curerntly? database tab is not loading for me