Skip to content
Back

How to mix Email password Login + OAuth

  • 1
  • Auth
  • Web
  • Cloud
Mashwishi
5 Jan, 2025, 10:06

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:

Source Code:

Project Structure:

  • Nextjs 15.1.3 (Pages Directory, JS)
  • Appwrite ^14.0.1
  • React 19
TL;DR
Developers are seeking help to create a combined login system using email password and OAuth methods, but OAuth is not redirecting the user as "logged in." They're using Nextjs 15.1.3, Appwrite ^14.0.1, and React 19. Solution: Make sure to check the OAuth redirect URI settings and ensure they match the expected redirect URL after successful OAuth authentication.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more