This SDK documentation is outdated. Please do not refer to it, and instead visit the User Guides section.

Skip to main content
Version: 7.0.X

getSession(req, res, options)

Parameters#

  • req
    • type: Express.Request
  • res
    • type: Express.Response
  • options (Optional)
    • type: {antiCsrfCheck?: boolean, sessionRequired?: boolean}

Returns#

  • Promise<Session>

Throws#

  • If the session does not exist and sessionRequired is not false
  • If the access token has expired, we need to try the refresh token.
Looking for older versions of the documentation?
Which UI do you use?
Custom UI
Pre built UI