I'm using Rest API for creating users using jwt. The problem is when i add the host as "cloud.appwrite.io" as given in the API endpoint, it is not working (status code = 401). The code is in Golang.
To be able to generate user JWT, the user have to be logged in. That mean you need to have the cookies set for that user.
If you run tests in postman for example then the user credentials & cookies will be saved between requests. that mean you'll need to first login the user using any of the create methods here https://appwrite.io/docs/client/account
If you're talking about the option to be able to generate JWT without requiring the user to be logged in then it's a requested feature in Appwrite issues list
Like this one
[CLOSED] Host problem while making POST request
Recommended threads
- It says domain already used but I have d...
I accidentally deleted the project in which I used my domain originally (orexia.app) from name.com. Now I am trying to add it to a different project and it says...
- ISO help
I’m writing a project specification paper. Please let me know if anyone has ISO/IEC/IEEE 29148:2018 — Requirements Engineering, or if someone can check the docu...
- No server error on selfhosted appwrite
Please help me, my clients is ask what happen on their data? How can i make it up again?