getSession(req, res, options)
#
Parametersreq
- type:
Express.Request
- type:
res
- type:
Express.Response
- type:
options
(Optional)- type:
{antiCsrfCheck?: boolean, sessionRequired?: boolean}
- type:
#
ReturnsPromise<Session>
#
Throws- If the session does not exist and
sessionRequired
is notfalse
- If the access token has expired, we need to try the refresh token.