Back

[SOLVED] Custom domain error

  • 0
  • Accounts
  • Web
  • Storage
  • Cloud
devme
13 Oct, 2023, 21:17

Hi everyone, despite some feedback on this problem, I still haven't managed to solve it.

I've just created a React Native application and when I ask for authentication, I get this error:

Appwrite is using localStorage for session management. Increase your security by adding a custom domain as your API endpoint.

When I created a web project in the Appwrite cloud console I defined hostname cloud.appwrite.io

TL;DR
The user encountered a custom domain error when using Appwrite for authentication in a React Native application. They forgot to redirect after authentication and received a warning about using localStorage for session management. The solution is to add a custom domain as the API endpoint and not create a web platform with cloud.appwrite.io.
Drake
13 Oct, 2023, 21:40

Appwrite is using localStorage for session management. Increase your security by adding a custom domain as your API endpoint.

that's just a warning and it's probably going to be expected on RN because i don't think you have a URL for your app

When I created a web project in the Appwrite cloud console I defined hostname cloud.appwrite.io

You're not supposed to create a web platform with cloud.appwrite.io. that's supposed to be the domain/hostname of your web app...but i don't think you have one.

devme
13 Oct, 2023, 21:55

sorry again, just a silly mistake, I forgot to redirect after authentication.

Thanks a lot @Steven Steven

Drake
13 Oct, 2023, 22:05

[SOLVED] Custom domain error

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