Hi, I'm developing a mobile app and I use this plugin to generate my users' token. I have this scenario and I think that could be common to many other people: I want to keep the user logged in so I save the token for future use, if the user opens the app before the expiration date I can refresh the token and extends its life otherwise I have to automatically signing in again the user and this imply storing the password and that shouldn't happen. Another way could be setting a longer expiration time but again it's not safe and the user could not use the app for a long time so expired token again.
Wouldn't be better generating an access token and a refresh token so we can also use the last one to refresh an expired token? Thanks in advance.
Hi, I'm developing a mobile app and I use this plugin to generate my users' token. I have this scenario and I think that could be common to many other people: I want to keep the user logged in so I save the token for future use, if the user opens the app before the expiration date I can refresh the token and extends its life otherwise I have to automatically signing in again the user and this imply storing the password and that shouldn't happen. Another way could be setting a longer expiration time but again it's not safe and the user could not use the app for a long time so expired token again.
Wouldn't be better generating an access token and a refresh token so we can also use the last one to refresh an expired token? Thanks in advance.