Skip to content
Objection
24 Nov, 2025, 15:41

IT WOULDN'T BELEAVE I AM SIGNED IN

TL;DR
Developers are having issues with OAuth redirect URL while using Google API services. In the code provided, it's missing the definition of the `ID` variable. Steps to check: 1. Project endpoint & ID are set early 2. OAuth redirect URL matches the actual site 3. Call `account.get()` after OAuth redirect finishes 4. Ensure testing domain is added in Appwrite Platform 5. Ensure browser doesn't block important cookies. To solve the issue, define the `ID` variable where it's being used in the code.
Objection
24 Nov, 2025, 15:43

google oauth by the way

Objection
24 Nov, 2025, 15:50

this with magic link log in

Objection
24 Nov, 2025, 15:50
<script src="https://cdn.jsdelivr.net/npm/appwrite@17.0.0"></script>

using this

Devika
24 Nov, 2025, 15:51

Hey! firstly, please check for these in your project setup:

  1. Your project endpoint & ID are set before anything else
  2. Your OAuth redirect URL EXACTLY matches your actual site
  3. Call account.get() only after the OAuth redirect finishes
  4. Make sure the domain you’re testing from is added in Appwrite Platform
  5. Any important cookies are not blocked by your browser
Devika
24 Nov, 2025, 15:52

It says you haven't defined ID. Can you please share where in your code you are using this variable?

Objection
24 Nov, 2025, 15:53

signinBtn.onclick = async function() { const email = emailInput.value; const token = await account.createMagicURLToken( ID.unique(), email, 'http://127.0.0.1:5501/verfy.html' );

};

Objection
24 Nov, 2025, 15:59

so i feel that's a bit stupid question but what is OAuth redirect URL i went to google api services and maid an OAuth 2.0 Client IDs then i got the client id and secret and inputted them in the google auth in the dashboard

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