connect-ensure-login
connect-ensure-login copied to clipboard
How "is logged in" is not documented.
The documentation should clarify how it's determined if the user is already logged in or not.
The answer is that the user is considered logged in if either req.isAuthenticated or req.isAuthenticated() returns true.