Remember Me option on Login

Hi, I use auth0 hosted Login with custom HTML and Auth0.js (auth0-js v9.12.2):

const webAuth = auth0.WebAuth(params);

webAuth.login({
                    realm: databaseConnection,
                    username: username,
                    password: password
                }, function (err) {
                    if (err) displayError(err);

...

I need to implement “Remember me” option on the Login. I am not talking about refresh_token or access_token expiration, I am talking about internal auth0 cookie validation. Auth0 login on my-tenant.eu.auth0.com responses with:

set-cookie: auth0=s%3Adn9xxxxxxxxxxxxxxxxxxx.m7Awssssssssssssssssssssssssxxx; Path=/; Expires=Thu, 09 Apr 2020 12:52:22 GMT; HttpOnly; Secure; SameSite=None

In case when user does not manually and intentionally hit “Remember me” checkbox, assume ho or she works on public computer and immediately he or she closes browser session must be forgotten.

How to set up this?

2 Likes

Hi @luke1988,
Did you ever get an answer to this one? I am facing the same question.

Some web applications may need a Remember Me functionality. This means taht, after a user login, user will have access from same machine to all its data even after session expired. This access will be possible until user does a logout.

This works really well for us, thank you!

any answers by auth0?

Do we have a way to implement this in universal login from auth0 yet?