Skip to content
Back

[SOLVED] Invalid origin error in authentication

  • 0
  • Resolved
  • 4
  • React Native
  • Auth
SwapnaSahoo
25 Jan, 2026, 03:35

I have setup the package name same as the package name in app.json but it is constantly saying AppwriteException: Invalid Origin. Register your new client as a new Android platform on your project console dashboard

TL;DR
Issue with 'Invalid origin error in authentication' is fixed by correcting a typo in the project id environment variable.
25 Jan, 2026, 05:35

What is the code that throws this error?

25 Jan, 2026, 21:12

You may be missing some setup steps. Like setting your package/app name

25 Jan, 2026, 22:09

that was account.create and I was giving email, password and name

25 Jan, 2026, 22:09

It's now fixed it was occurring because i have made a typo in the project id env variable

25 Jan, 2026, 22:10

[SOLVED] Invalid origin error in authentication

26 Jan, 2026, 13:06

Afaik, adding the package id or bundle id does nothing. Everything works with or without it :/ Did you guys recently added some kind of origin check for native apps?

4 Feb, 2026, 14:03

ive recently met this error too... no luck solving it

11 Feb, 2026, 11:47

is it solved now? in my case i had made a typo in the project id env variable which was causing this

11 Feb, 2026, 13:24

If someone else faces it, please, create a new post

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