Enhance remember me with new Userbase functionality
Closed this issue · 1 comments
raae commented
This will solve discussion in #126
As of now users are only logged in for a little over 24 hours, then they have to log in. We want them to be logged in for a week, and every time they come back to the app (even without signing in) it should be extended for a week.
Session length is in hours, so make sure to get 7 days in hours as the value.
Relevant code to be found in features/auth
- Update the userbase package
- Add
sessionLength
touserbase.init
(https://userbase.com/docs/sdk/init/) - Add
sessionLength
touserbase.signIn
anduserbase.singUp
(https://userbase.com/docs/sdk/sign-in/, https://userbase.com/docs/sdk/sign-up/)