jwt

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2022 License: Apache-2.0 Imports: 5 Imported by: 5

Documentation

Index

Constants

View Source
const (
	GetJWKSAPI = "/jwt/jwks.json"
)
View Source
const RECIPE_ID = "jwt"

Variables

This section is empty.

Functions

func CreateJWT

func CreateJWT(payload map[string]interface{}, validitySecondsPointer *uint64) (jwtmodels.CreateJWTResponse, error)

func GetJWKS

func GetJWKS() (jwtmodels.GetJWKSResponse, error)

func Init

func Init(config *jwtmodels.TypeInput) supertokens.Recipe

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL