Notify user of pending logout

Hi, I’d like to notify users when their current session is due to expire, and that they’ll be logged out in X minutes, to allow them to extend their session.

Can anyone tell me how I’d do this, please?

Thanks.

Hi @john.goodwin,

Welcome to the Auth0 Community!

For this, I recommend using the user’s access token exp claim to get the expiration time of the session.

Then with this knowledge, you can issue a notification on your application letting the user know when their session will expire.

I hope this helps!

Please let me know how this works for you.

Thanks,
Rueben

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