createNewSession(res, userId, jwtPayload, sessionData)
#
Parameters- Express
- Hapi
- Fastify
- Koa
- Loopback
- AWS Lambda / Netlify
- Next.js
- NestJS
res
- type:
Express.Response
- type:
userId
- type:
string
- type:
jwtPayload
- type:
object
- type:
sessonData
- type:
object
- type:
res
- type:
Hapi.ResponseToolkit
- type:
userId
- type:
string
- type:
jwtPayload
- type:
object
- type:
sessonData
- type:
object
- type:
res
- type:
Fastify.FastifyReply
- type:
userId
- type:
string
- type:
jwtPayload
- type:
object
- type:
sessonData
- type:
object
- type:
res
- type:
AWS.APIGatewayProxyEvent | AWS.APIGatewayProxyEventV2
- type:
userId
- type:
string
- type:
jwtPayload
- type:
object
- type:
sessonData
- type:
object
- type:
res
- type:
Koa.Context
- type:
userId
- type:
string
- type:
jwtPayload
- type:
object
- type:
sessonData
- type:
object
- type:
res
- type:
Loopback.MiddlewareContext
- type:
userId
- type:
string
- type:
jwtPayload
- type:
object
- type:
sessonData
- type:
object
- type:
res
- type:
Next.NextApiResponse
- type:
userId
- type:
string
- type:
jwtPayload
- type:
object
- type:
sessonData
- type:
object
- type:
NestJS uses library-specific types for Request and Response. You should use the one provided by your underlying framework (the default is Express)
res
- type:
Express.Response
- type:
userId
- type:
string
- type:
jwtPayload
- type:
object
- type:
sessonData
- type:
object
- type:
#
ReturnsPromise<Session>
on successful creation of a session.