I’m building a info screen for a customer. From time to time, the user may be logged out, e.g. when updating our system. How can I ensure that the user is automatically logged back in immediately? I want it to happen automatically. The customer should not need to press anything at any time.
Things I have tried/read about:
- LastPass Chrome extension
- Easy Auto Refresh Edge extension along with auto-fill username and password
- Auto Login Chrome extension.
None of these alternatives seem to work. In all scenarios, I have to actively press the login button.
2
Answers
You could achieve the above using access tokens and refresh tokens. Adding the link for reference.
[Reference] – https://auth0.com/blog/refresh-tokens-what-are-they-and-when-to-use-them/
You can use json web token (jwt) or ypu can generate a hash key for each login anf re-open session when ever you want.