Back

JWT TOKEN (CREATING A CUSTOM TOKEN )

  • 1
  • Web
killerthief
23 Aug, 2023, 20:17

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 ?

TL;DR
The user is asking if there is a way to store information in the JWT token and then verify it. They then mention finding a library called Js-cookies that does the job. They also mention that the createJWT function only creates the token but doesn't set it. Lastly, they ask if they can use the createJWT function and name the token according to their preference.
killerthief
23 Aug, 2023, 20:27

I see that createJWT onyl creates it but does not set's it.

killerthief
23 Aug, 2023, 20:42

NeverMind find a library called Js-cookies does the job

killerthief
23 Aug, 2023, 20:42

But if there is a way to store some information in hte jwtToken and then verify it would be great.

Drake
23 Aug, 2023, 23:25

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

Drake
23 Aug, 2023, 23:26

For more info on Appwrite's cookies, see https://appwrite.io/docs/rest#client-auth

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more