Skip to main content
References

JWT Types

Type Aliases

APIInterface

type APIInterface = object;

Defined in: recipe/jwt/types.ts:82

Properties

PropertyTypeDefined in
getJWKSGET| undefined | (input) => Promise< | { keys: JsonWebKey[]; } | GeneralErrorResponse>recipe/jwt/types.ts:83

APIOptions

type APIOptions = object;

Defined in: recipe/jwt/types.ts:51

Properties

PropertyTypeDefined in
configTypeNormalisedInputrecipe/jwt/types.ts:53
isInServerlessEnvbooleanrecipe/jwt/types.ts:55
recipeIdstringrecipe/jwt/types.ts:54
recipeImplementationRecipeInterfacerecipe/jwt/types.ts:52
reqBaseRequestrecipe/jwt/types.ts:56
resBaseResponserecipe/jwt/types.ts:57

JsonWebKey

type JsonWebKey = object;

Defined in: recipe/jwt/types.ts:20

Properties

RecipeInterface

type RecipeInterface = object;

Defined in: recipe/jwt/types.ts:60

Methods

createJWT()
createJWT(input): Promise<
| {
jwt: string;
status: "OK";
}
| {
status: "UNSUPPORTED_ALGORITHM_ERROR";
}>;

Defined in: recipe/jwt/types.ts:61

Parameters
ParameterType
input{ payload?: any; userContext: UserContext; useStaticSigningKey?: boolean; validitySeconds?: number; }
input.payload?any
input.userContextUserContext
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:76

Parameters
ParameterType
input{ userContext: UserContext; }
input.userContextUserContext
Returns

Promise<{ keys: JsonWebKey[]; validityInSeconds?: number; }>

TypeInput

type TypeInput = object;

Defined in: recipe/jwt/types.ts:29

Properties

PropertyTypeDefined in
jwtValiditySeconds?numberrecipe/jwt/types.ts:30
override?objectrecipe/jwt/types.ts:31
override.apis?(originalImplementation, builder) => APIInterfacerecipe/jwt/types.ts:36
override.functions?(originalImplementation, builder) => RecipeInterfacerecipe/jwt/types.ts:32

TypeNormalisedInput

type TypeNormalisedInput = object;

Defined in: recipe/jwt/types.ts:40

Properties

PropertyTypeDefined in
jwtValiditySecondsnumberrecipe/jwt/types.ts:41
overrideobjectrecipe/jwt/types.ts:42
override.apis(originalImplementation, builder) => APIInterfacerecipe/jwt/types.ts:47
override.functions(originalImplementation, builder) => RecipeInterfacerecipe/jwt/types.ts:43