Rank 1: Thread
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