Introduction

The "Remember Me" functionality can reduce friction in the sign-in flow, by remembering the user that previously signed in. Instead of the user needing to remember which authentication method they used for your application, you can now adjust your flows to suggest which method they used most recently.

To implement this in your flow, simply add a condition at the beginning, checking if lastAuth.loginId is not empty:

Descope remember me guide configuring conditional based on existing user.

If lastAuth.loginId is not empty - add a screen that will show the user the remembered name and have a button to sign in:

Descope remember me guide configuring welcome screen.

For the "Sign In" button, create a condition for the remembered authentication method using lastAuth.authMethod:

Descope remember me guide configuring conditional based on existing user and auth methods.

Then, connect all the conditions to the relevant authentication methods in the Flow Editor.

This is how it will look like:



Descope remember me guide configuring conditional location within flow.

Last authentication - name

The key lastAuth.name can be used inside a flow condition to display an informative message to the end user, relatively, when he returns to your log-in page.

Descope remember me guide lastAuth.name condition

Descope remember me guide lastAuth.name example

This key has a failover mechanism in case one of the user's fields that populate it contains no data.


1. Display Name
2. Login ID
3. Email
4. Phone