I use firebase JWT, when you logged or register, firebase callback send a JWT, you can storage the JWT in memory or database, and use to remember the user. In this payload you can easily find by decoding this JWT: userId and mail, and so many parameters. It's well documented in firebase.
I was looking for that in appwrite, some way to manager authorization and authentication by JWT, is that posible?
Thanks for the answer, if it's no posible, how we can know if the user is logged or register with out passing again and again by the login page. Is an app on android.
I don't understand well magic url's, I see using deep linking in flutter we can redirect to same places of the app, may be I have a wrong concept and need to understand better the functionality of magic urls, I prefer JWT for launching faster apps screen avoiding loging process, not needed high security level, no bank app or other types of apps with more security level
Any system of remenber user in appwrite with persistence before they close the app? Somethig to store in share preferences or BBDD locally? JWT it's great for that with the payload information if stores some data as userID, userPhoto, email and all the data that could store in this payloads
have you read through https://appwrite.io/docs/authentication?
I read, but documentation is so short about JWT, doesn't explain nothing about payload and how you can manage it, I think the way is testing, but I ask if there is anything more deep about it, well I will try, thank Steven, but may it's better to write examples for check them with out testing, better way to for developers to see if they can do somethigs with testing or could see if they will get what they expect in appwrite. Thanks for the info
Oh, sorry Steven, I didn't read in deep this document, just check JWT as firebase handle, yes, diferent way, appwrite stores local cookie in flutter writting by using path provider, it's diferent aproach for firebase, I see. Do you need to have install path provider in your flutter app and appwrite handle persistance automatically and how you can handle this session?, just that last questions
[SOLVED]JWT payloads, how to manage and store JWT for authentication
[SOLVED] JWT payloads, how to manage and store JWT for authentication
The Appwrite SDK will automatically persist the session
This might also be helpful: https://github.com/appwrite/appwrite/discussions/3938#discussioncomment-3746725
Thanks Steven, I resolve my doubt now, just ask for JWT because I develope things with firebase, but it's more easy way I see to persist session, just question, can delete session?, I see it's automatically, thats good, but if you want to clear after use, how to do it, for security reason in same case it will be necesary
Sorry Steeven, it's in documentation, thanks again
No worries! One day when we have search it will be much easier to find 😅
Yeah, handle noob it's hard, appreciate your work
Recommended threads
- Current User is Not authorized
recreating same Thread
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...
- Sign In With Apple OAuth Help
Hi All! I've got a flutter & appwrite app which Im trying to use sign in with apple for. I already have sign in with google working and the function is the sam...