Trying to get the User's info via rest api and by the userId from session.
I'm getting ERR_ABORTED 401 (Unauthorized)
From the docs I read I need to send via a GET request those headers:
GET /v1/users/{userId} HTTP/1.1
Content-Type: application/json
X-Appwrite-Response-Format: 1.4.0
X-Appwrite-Project: 5df5acd0d48c2
X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2
I finally succeeded
My question is regarding the Appwrite-Key - in the docs it says:
API key used for server authentication. Your API key is a secret, do not use it in client applications.
I'm using it from the client to make the api call..so this is a security risk?
Thanks
Discover the Appwrite REST API for building robust and scalable applications. Access detailed documentation on REST endpoints, authentication, and data management.
