supertokens-node
Preparing search index...
recipe/jwt
RecipeInterface
Type Alias RecipeInterface
type
RecipeInterface
=
{
createJWT
(
input
:
{
payload
?:
any
;
userContext
:
UserContext
;
useStaticSigningKey
?:
boolean
;
validitySeconds
?:
number
;
}
,
)
:
Promise
<
|
{
jwt
:
string
;
status
:
"OK"
}
|
{
status
:
"UNSUPPORTED_ALGORITHM_ERROR"
}
,
>
;
getJWKS
(
input
:
{
userContext
:
UserContext
}
,
)
:
Promise
<
{
keys
:
JsonWebKey
[]
;
validityInSeconds
?:
number
}
>
;
}
Index
Methods
createJWT
getJWKS
Methods
createJWT
createJWT
(
input
:
{
payload
?:
any
;
userContext
:
UserContext
;
useStaticSigningKey
?:
boolean
;
validitySeconds
?:
number
;
}
,
)
:
Promise
<
|
{
jwt
:
string
;
status
:
"OK"
}
|
{
status
:
"UNSUPPORTED_ALGORITHM_ERROR"
}
,
>
Parameters
input
:
{
payload
?:
any
;
userContext
:
UserContext
;
useStaticSigningKey
?:
boolean
;
validitySeconds
?:
number
;
}
Returns
Promise
<
|
{
jwt
:
string
;
status
:
"OK"
}
|
{
status
:
"UNSUPPORTED_ALGORITHM_ERROR"
}
,
>
getJWKS
getJWKS
(
input
:
{
userContext
:
UserContext
}
,
)
:
Promise
<
{
keys
:
JsonWebKey
[]
;
validityInSeconds
?:
number
}
>
Parameters
input
:
{
userContext
:
UserContext
}
Returns
Promise
<
{
keys
:
JsonWebKey
[]
;
validityInSeconds
?:
number
}
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
createJWT
getJWKS
supertokens-node
Loading...