The easiest would be to use JWT as access tokens and check "exp" In this component, when you log in, we're given an expiry time. We set a .