Skip to main content
References

OpenID Types

Type Aliases

APIInterface

type APIInterface = object;

Defined in: recipe/openid/types.ts:47

Properties

PropertyTypeDefined in
getOpenIdDiscoveryConfigurationGET| undefined | (input) => Promise< | { authorization_endpoint: string; end_session_endpoint: string; id_token_signing_alg_values_supported: string[]; issuer: string; jwks_uri: string; response_types_supported: string[]; revocation_endpoint: string; status: "OK"; subject_types_supported: string[]; token_endpoint: string; token_introspection_endpoint: string; userinfo_endpoint: string; } | GeneralErrorResponse>recipe/openid/types.ts:48

APIOptions

type APIOptions = object;

Defined in: recipe/openid/types.ts:39

Properties

RecipeInterface

type RecipeInterface = object;

Defined in: recipe/openid/types.ts:69

Methods

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

Defined in: recipe/openid/types.ts:84

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"; }>

getOpenIdDiscoveryConfiguration()
getOpenIdDiscoveryConfiguration(input): Promise<{
authorization_endpoint: string;
end_session_endpoint: string;
id_token_signing_alg_values_supported: string[];
issuer: string;
jwks_uri: string;
response_types_supported: string[];
revocation_endpoint: string;
status: "OK";
subject_types_supported: string[];
token_endpoint: string;
token_introspection_endpoint: string;
userinfo_endpoint: string;
}>;

Defined in: recipe/openid/types.ts:70

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

Promise<{ authorization_endpoint: string; end_session_endpoint: string; id_token_signing_alg_values_supported: string[]; issuer: string; jwks_uri: string; response_types_supported: string[]; revocation_endpoint: string; status: "OK"; subject_types_supported: string[]; token_endpoint: string; token_introspection_endpoint: string; userinfo_endpoint: string; }>

TypeInput

type TypeInput = object;

Defined in: recipe/openid/types.ts:19

Properties

PropertyTypeDefined in
override?objectrecipe/openid/types.ts:20
override.apis?(originalImplementation, builder) => APIInterfacerecipe/openid/types.ts:25
override.functions?(originalImplementation, builder) => RecipeInterfacerecipe/openid/types.ts:21

TypeNormalisedInput

type TypeNormalisedInput = object;

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

Properties

PropertyTypeDefined in
overrideobjectrecipe/openid/types.ts:30
override.apis(originalImplementation, builder) => APIInterfacerecipe/openid/types.ts:35
override.functions(originalImplementation, builder) => RecipeInterfacerecipe/openid/types.ts:31