When createEmailSession is used I see it creats multiple JWT Token , but I am not sure which one is stats that the user has logged in . So , can I use the createJWT and if yess can I name the token according to the name I like ?
I see that createJWT onyl creates it but does not set's it.
NeverMind find a library called Js-cookies does the job
But if there is a way to store some information in hte jwtToken and then verify it would be great.
The Appwrite JWT token is meant to allow another system to act on behalf of the user. It's not meant to store things. You can store things in user preferences or the database
For more info on Appwrite's cookies, see https://appwrite.io/docs/rest#client-auth
Recommended threads
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...