Rank 1: Thread
Please pardon my poor title,
I am using NextJs12,
I’m working with appwrite client sdk to do a lot of the heavy lifting, but I had a use case where users need to subscribe and then a label is added to them. This label can’t be added via the client sdk, only from the server sdk from my due diligence, I don’t want to use functions, so I chose to add some api, but while designing, I got stuck on how to ensure that only authentication accounts can send requests to that api, and then use that request to identify the user and update the label. And use middleware for identifying the user… but I’ve been searching authentication is done by the client in appwrite if it stores session or cookies, but after sending a test axios request, I saw nothing from appwrite stored.