Documentation ¶
Index ¶
- Constants
- func AfterEach()
- func BeforeEach()
- func CreateJWT(payload map[string]interface{}, validitySecondsPointer *uint64, ...) (jwtmodels.CreateJWTResponse, error)
- func GetJWKS(userContext ...supertokens.UserContext) (jwtmodels.GetJWKSResponse, error)
- func GetOpenIdDiscoveryConfiguration(userContext ...supertokens.UserContext) (openidmodels.GetOpenIdDiscoveryConfigurationResponse, error)
- func Init(config *openidmodels.TypeInput) supertokens.Recipe
- func ResetForTest()
- type Recipe
Constants ¶
View Source
const (
GetDiscoveryConfigUrl = "/.well-known/openid-configuration"
)
View Source
const RECIPE_ID = "openid"
Variables ¶
This section is empty.
Functions ¶
func BeforeEach ¶
func BeforeEach()
func CreateJWT ¶
func CreateJWT(payload map[string]interface{}, validitySecondsPointer *uint64, useStaticSigningKey *bool, userContext ...supertokens.UserContext) (jwtmodels.CreateJWTResponse, error)
func GetJWKS ¶
func GetJWKS(userContext ...supertokens.UserContext) (jwtmodels.GetJWKSResponse, error)
func GetOpenIdDiscoveryConfiguration ¶
func GetOpenIdDiscoveryConfiguration(userContext ...supertokens.UserContext) (openidmodels.GetOpenIdDiscoveryConfigurationResponse, error)
func Init ¶
func Init(config *openidmodels.TypeInput) supertokens.Recipe
func ResetForTest ¶
func ResetForTest()
Types ¶
type Recipe ¶
type Recipe struct { RecipeModule supertokens.RecipeModule Config openidmodels.TypeNormalisedInput RecipeImpl openidmodels.RecipeInterface JwtRecipe jwt.Recipe APIImpl openidmodels.APIInterface }
func MakeRecipe ¶
func MakeRecipe(recipeId string, appInfo supertokens.NormalisedAppinfo, config *openidmodels.TypeInput, onSuperTokensAPIError func(err error, req *http.Request, res http.ResponseWriter)) (Recipe, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.