Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIInterface ¶
type APIInterface struct {
GetJWKSGET *func(options APIOptions, userContext supertokens.UserContext) (GetJWKSAPIResponse, error)
}
type APIOptions ¶
type APIOptions struct { RecipeImplementation RecipeInterface Config TypeNormalisedInput RecipeID string Req *http.Request Res http.ResponseWriter OtherHandler http.HandlerFunc }
type CreateJWTResponse ¶
type CreateJWTResponse struct { OK *struct { Jwt string } UnsupportedAlgorithmError *struct{} }
type GetJWKSAPIResponse ¶ added in v0.7.0
type GetJWKSAPIResponse struct { OK *struct { Keys []JsonWebKeys } GeneralError *supertokens.GeneralErrorResponse }
type GetJWKSResponse ¶
type GetJWKSResponse struct { OK *struct { Keys []JsonWebKeys } }
type JsonWebKeys ¶
type OverrideStruct ¶
type OverrideStruct struct { Functions func(originalImplementation RecipeInterface) RecipeInterface APIs func(originalImplementation APIInterface) APIInterface }
type RecipeInterface ¶
type RecipeInterface struct { CreateJWT *func(payload map[string]interface{}, validitySeconds *uint64, useStaticSigningKey *bool, userContext supertokens.UserContext) (CreateJWTResponse, error) GetJWKS *func(userContext supertokens.UserContext) (GetJWKSResponse, error) }
type TypeInput ¶
type TypeInput struct { JwtValiditySeconds *uint64 Override *OverrideStruct }
type TypeNormalisedInput ¶
type TypeNormalisedInput struct { JwtValiditySeconds uint64 Override OverrideStruct }
Click to show internal directories.
Click to hide internal directories.