Implement "remember me" functionality at login with Realm Web SDK

Hello everybody,

I am using the realm integrated user management system for my application and I need to implement a “remember me” function at user login.

I noticed that the realm web sdk manages the localStorage automatically, in fact the user logs in and, if he closes the session and opens a new one, the system identifies him unless he has performed an explicit logout.

Is there a way to tie this behavior to a user’s choice? (I think of a “remember me” checkbox during login).

thanks.