Initiates the authorisation flow.
Optional
options: { = false - If true, and no active session exists, then the user will not be prompted to log in and the Promise will resolve with a null value.
Optional
anonymousIf provided, Passport internal metrics will be enriched with this value.
the user profile if the user is logged in, otherwise null
Optional
options: { Optional
anonymousOptional
timeoutMs: number
Deprecated
The method
login
with an argument of{ useCachedSession: true }
should be used in conjunction withconnectImx
instead.