supertokens-node
Preparing search index...
recipe/session
createNewSession
Variable createNewSession
createNewSession
:
(
req
:
any
,
res
:
any
,
tenantId
:
string
,
recipeUserId
:
RecipeUserId
,
accessTokenPayload
?:
any
,
sessionDataInDatabase
?:
any
,
userContext
?:
Record
<
string
,
any
>
,
)
=>
Promise
<
SessionContainer
>
= SessionWrapper.createNewSession
Type declaration
(
req
:
any
,
res
:
any
,
tenantId
:
string
,
recipeUserId
:
RecipeUserId
,
accessTokenPayload
?:
any
,
sessionDataInDatabase
?:
any
,
userContext
?:
Record
<
string
,
any
>
,
)
:
Promise
<
SessionContainer
>
Parameters
req
:
any
res
:
any
tenantId
:
string
recipeUserId
:
RecipeUserId
accessTokenPayload
:
any
= {}
sessionDataInDatabase
:
any
= {}
Optional
userContext
:
Record
<
string
,
any
>
Returns
Promise
<
SessionContainer
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
supertokens-node
Loading...