Pre-Login Redirection: Managing Inactivity on the Login Page and Redirecting Users

I am looking to implement a functionality in my application that allows redirecting users to a specific page if they haven’t interacted with the login page for a certain period of time (for example, 5 minutes). My application utilizes the ‘New Universal Login’ for authentication along with Next.js.

My goal is to redirect users to a custom page within my application after a certain period of inactivity on the Auth0 login page, prior to their authentication. Is achieving this feasible? If so, what would be the best approach to implement it, and what are the general steps for configuration?

I would greatly appreciate guidance on how to address this specific use case utilizing the current features of Auth0.

Thank you!

Hi @puedobesart,

Welcome to the Auth0 Community!

Unfortunately, it is not possible to redirect users to a custom page after a certain inactivity time has passed with the New Universal Login.

There’s no way to determine this since the user has not logged in, meaning that there is no session to determine whether they are active or inactive. Additionally, it won’t be possible to redirect after a certain time has passed. The user would remain on the New Universal Login page until they have performed another action, like logging in or returning to your home page.

Thanks,
Rueben

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.