supertokens-node/recipe/jwt/types
References documentation for the supertokens-node/recipe/jwt/types package
Type Aliases
APIInterface
type APIInterface = object;
Defined in: recipe/jwt/types.ts
Properties
| Property | Type | Defined in |
|---|---|---|
getJWKSGET |
| undefined | (input) => Promise< | { keys: JsonWebKey[]; } | GeneralErrorResponse> |
recipe/jwt/types.ts |
APIOptions
type APIOptions = object;
Defined in: recipe/jwt/types.ts
Properties
| Property | Type | Defined in |
|---|---|---|
config |
TypeNormalisedInput |
recipe/jwt/types.ts |
isInServerlessEnv |
boolean |
recipe/jwt/types.ts |
recipeId |
string |
recipe/jwt/types.ts |
recipeImplementation |
RecipeInterface |
recipe/jwt/types.ts |
req |
BaseRequest |
recipe/jwt/types.ts |
res |
BaseResponse |
recipe/jwt/types.ts |
JsonWebKey
type JsonWebKey = object;
Defined in: recipe/jwt/types.ts
Properties
| Property | Type | Defined in |
|---|---|---|
alg |
string |
recipe/jwt/types.ts |
e |
string |
recipe/jwt/types.ts |
kid |
string |
recipe/jwt/types.ts |
kty |
string |
recipe/jwt/types.ts |
n |
string |
recipe/jwt/types.ts |
use |
string |
recipe/jwt/types.ts |
RecipeInterface
type RecipeInterface = object;
Defined in: recipe/jwt/types.ts
Methods
createJWT()
createJWT(input): Promise<
| {
jwt: string;
status: "OK";
}
| {
status: "UNSUPPORTED_ALGORITHM_ERROR";
}>;
Defined in: recipe/jwt/types.ts
Parameters
| Parameter | Type |
|---|---|
input |
{ payload?: any; userContext: UserContext; useStaticSigningKey?: boolean; validitySeconds?: number; } |
input.payload? |
any |
input.userContext |
UserContext |
input.useStaticSigningKey? |
boolean |
input.validitySeconds? |
number |
Returns
Promise<
| {
jwt: string;
status: "OK";
}
| {
status: "UNSUPPORTED_ALGORITHM_ERROR";
}>
getJWKS()
getJWKS(input): Promise<{
keys: JsonWebKey[];
validityInSeconds?: number;
}>;
Defined in: recipe/jwt/types.ts
Parameters
| Parameter | Type |
|---|---|
input |
{ userContext: UserContext; } |
input.userContext |
UserContext |
Returns
Promise<{
keys: JsonWebKey[];
validityInSeconds?: number;
}>
TypeInput
type TypeInput = object;
Defined in: recipe/jwt/types.ts
Properties
| Property | Type | Defined in |
|---|---|---|
jwtValiditySeconds? |
number |
recipe/jwt/types.ts |
override? |
object |
recipe/jwt/types.ts |
override.apis? |
(originalImplementation, builder) => APIInterface |
recipe/jwt/types.ts |
override.functions? |
(originalImplementation, builder) => RecipeInterface |
recipe/jwt/types.ts |
TypeNormalisedInput
type TypeNormalisedInput = object;
Defined in: recipe/jwt/types.ts
Properties
| Property | Type | Defined in |
|---|---|---|
jwtValiditySeconds |
number |
recipe/jwt/types.ts |
override |
object |
recipe/jwt/types.ts |
override.apis |
(originalImplementation, builder) => APIInterface |
recipe/jwt/types.ts |
override.functions |
(originalImplementation, builder) => RecipeInterface |
recipe/jwt/types.ts |