#How I can decode the token with appwrite after I made the session ?

1 messages · Page 1 of 1 (latest)

sterile crescent
#

After the user login and all the info are correct, I am going to receive a access token
How i can decode it and get the info of the user?

stiff stone
#

what info? you can also do - account.get(), right?

sterile crescent
stiff stone
#

nothing. after a successful login (assuming you are using an SDK), a simple - const user = await account.get(); returns the user info.