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
- I recently applied for the free plan und...
I recently applied for the free plan under the GitHub Student Developer Pack. However, my billing status still shows $15, and it mentions that this amount will ...
- Bug Report: Appwrite Console UI Issue on...
Steps to Reproduce: - Navigate to any collection page in the Appwrite console UI. - Open the menu and click on "Create Collection." - Observe that the dialog to...
- Current User is Not authorized
recreating same Thread