To determine if the user is already logged into your application, you may use the When the auth middleware detects an unauthorized user, it will redirect the .