Having problems with Auth as a result of the API key Anyone to help asap?
Hey! Let's continue our discussion from older thread here
Okayy
I searched about the issue you were facing. And found this: https://appwrite.io/threads/1235041279189061673?utm_source=chatgpt.com
Oh okay
This thread mentions that you can't use API key for user authentication. And which is why you were getting that guest role error
They've clearly mentioned that you can't use API keys on client side as it's only meant to be used on server side
And sorry earlier I misunderstood the issue that's why couldn't respond accordingly
So how do I authenticate then?
Don't worry.
Using Appwrite's very own service called Appwrite Auth
You just have to set up a few things using it's in-built functions for both signup & login and then you can authenticate users
Here are the docs for more info: https://appwrite.io/docs/products/auth
If you still get stuck, just ping me!
Hey! I've been able to sort it out now Thanks for your help! Much appreciated
Recommended threads
- vorafy.studio domain already exists erro...
My domain vorafy.studio is stuck/locked from a previously deleted project. I created a new project but can't add the domain — getting 'already exists' error. Pl...
- Unable to init function via cli
Hello! I have created a new self hosted instance of appwrite 1.9.6 and have connected to that insatnce with the cli 27.2.0 that was released a few hours ago. Wh...
- Appwrite-injected variables are not avai...
I am using rust-1.83 as a runtime and try to access APPWRITE_FUNCTION_API_ENDPOINT or APPWRITE_FUNCTION_API_KEY during runtime. Both are not set during my execu...