#create jwt takes no params?

14 messages · Page 1 of 1 (latest)

sharp basin
#

i mean it should store data right like name and email so shouldnt we be able to add other data like maybe nickname

eager tangle
#

no you are accually not able to do it, you cant even know JWT_SECRET

#

in JWT is only userId of user and $id and $createdAt

sharp basin
#

ok so now imagine i log in using create email session
and as jwt takes no params im assuming there is some way that it fetches the email id and returns the userid am i correct?

eager tangle
#

yes, you send your session with fetch and then you gen JWT with userId

#

Appwrite will get your userId from session

sturdy frigate
sharp basin
#

Thank you @eager tangle and @livid folio

livid folio
#

anything for @sharp basin

#

mark it as solved!

sharp basin
#

No no yea ill mark it

#

Just figuring out how

#

How do i make it as solved? 💀