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
- Appwrite usage is reporting inaccurate i...
I was using Appwrite mainly for the site hosting on the free tier when I saw that I am using 5 GB storage when Appwrite only allows you to use 2 GB. Itβs been l...
- All Apple platforms are invalidated on t...
Just saw a lot of errors coming from iOS apps where Cloud is throwing **403** with type **general_unknown_origin**. Culprit is that all Apple platforms suddenly...
- The /storage web page is not working in ...
The /storage web page is not working in Appwrite. Server : FRA