Auth0 Home Blog Docs

How to Re-login the user silently in background after the token is expired?

session
ios
swift
auth0swift
#1

Once I log in the user with successful credentials, I have a time duration which the token expires.
When the token expires, how to log in the user automatically in the background?

I use the iOS Swift SDK.

#2

Hey there!

The concept that you need to grasp are refresh tokens :slight_smile:

Here are our simple and step-by-step docs on that: