Skip to main content
Version: 7.1.X

createNewSession(res, userId, jwtPayload, sessionData)

Parameters#

  • res
    • type: Express.Response
  • userId
    • type: string
  • jwtPayload
    • type: object
  • sessonData
    • type: object

Returns#

  • Promise<Session> on successful creation of a session.
Which frontend SDK do you use?
supertokens-web-js / mobile
supertokens-auth-react