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

Skip to main content
Version: 6.0.X

getSession(req, res, options)


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


  • Promise<Session>


  • 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