Documentation ¶
Index ¶
- Constants
- func AfterEach()
- func BeforeEach()
- func CreateJWT(payload map[string]interface{}, validitySecondsPointer *uint64) (jwtmodels.CreateJWTResponse, error)
- func CreateJWTWithContext(payload map[string]interface{}, validitySecondsPointer *uint64, ...) (jwtmodels.CreateJWTResponse, error)
- func GetJWKS() (jwtmodels.GetJWKSResponse, error)
- func GetJWKSWithContext(userContext supertokens.UserContext) (jwtmodels.GetJWKSResponse, error)
- func Init(config *jwtmodels.TypeInput) supertokens.Recipe
- func ResetForTest()
- type Recipe
Constants ¶
View Source
const (
GetJWKSAPI = "/jwt/jwks.json"
)
View Source
const RECIPE_ID = "jwt"
Variables ¶
This section is empty.
Functions ¶
func BeforeEach ¶ added in v0.5.8
func BeforeEach()
func CreateJWT ¶
func CreateJWT(payload map[string]interface{}, validitySecondsPointer *uint64) (jwtmodels.CreateJWTResponse, error)
func CreateJWTWithContext ¶ added in v0.5.0
func CreateJWTWithContext(payload map[string]interface{}, validitySecondsPointer *uint64, userContext supertokens.UserContext) (jwtmodels.CreateJWTResponse, error)
func GetJWKS ¶
func GetJWKS() (jwtmodels.GetJWKSResponse, error)
func GetJWKSWithContext ¶ added in v0.5.0
func GetJWKSWithContext(userContext supertokens.UserContext) (jwtmodels.GetJWKSResponse, error)
func ResetForTest ¶ added in v0.4.0
func ResetForTest()
Types ¶
type Recipe ¶
type Recipe struct { RecipeModule supertokens.RecipeModule Config jwtmodels.TypeNormalisedInput RecipeImpl jwtmodels.RecipeInterface APIImpl jwtmodels.APIInterface }
func MakeRecipe ¶
func MakeRecipe(recipeId string, appInfo supertokens.NormalisedAppinfo, config *jwtmodels.TypeInput, onGeneralError func(err error, req *http.Request, res http.ResponseWriter)) (Recipe, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.