User Management
Options
![Lefteris Stefanou](https://us.v-cdn.net/6037124/user_avatars/3646482.jpg)
Lefteris Stefanou
Member ✭
Hello,
Let's just say that the User of my app logins into the app and that results into an AuthToken that lasts for a day (by default). I want the data that have to do with him to appear into a tab (let's call it profile). So since he logged in I can refer him through the auth.id variable (since his login provided me with the AuthToken). And I am able to keep doing that as long as the session is active (supposing the AuthToken doesn't expire). When he closes the app the session ends. How can I refer to him again (so that he will see once again those data referring to him in the Profile tab) without the need of him to provide his login credentials every time he opens the app?
Let's just say that the User of my app logins into the app and that results into an AuthToken that lasts for a day (by default). I want the data that have to do with him to appear into a tab (let's call it profile). So since he logged in I can refer him through the auth.id variable (since his login provided me with the AuthToken). And I am able to keep doing that as long as the session is active (supposing the AuthToken doesn't expire). When he closes the app the session ends. How can I refer to him again (so that he will see once again those data referring to him in the Profile tab) without the need of him to provide his login credentials every time he opens the app?
Comments
-
This is a front end problem. You want to store the auth token in “localstorage” when you get it (https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage) and retrieve it on page load to validate whether the user is in a validated state.
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback