Documentation ¶
Index ¶
- Constants
- func AfterEach()
- func BeforeEach()
- func ClearUserMetadata(userID string, userContext ...supertokens.UserContext) error
- func GetUserMetadata(userID string, userContext ...supertokens.UserContext) (map[string]interface{}, error)
- func Init(config *usermetadatamodels.TypeInput) supertokens.Recipe
- func ResetForTest()
- func UpdateUserMetadata(userID string, metadataUpdate map[string]interface{}, ...) (map[string]interface{}, error)
- type Recipe
Constants ¶
View Source
const RECIPE_ID = "usermetadata"
Variables ¶
This section is empty.
Functions ¶
func BeforeEach ¶
func BeforeEach()
func ClearUserMetadata ¶
func ClearUserMetadata(userID string, userContext ...supertokens.UserContext) error
func GetUserMetadata ¶
func GetUserMetadata(userID string, userContext ...supertokens.UserContext) (map[string]interface{}, error)
func Init ¶
func Init(config *usermetadatamodels.TypeInput) supertokens.Recipe
func ResetForTest ¶
func ResetForTest()
func UpdateUserMetadata ¶
func UpdateUserMetadata(userID string, metadataUpdate map[string]interface{}, userContext ...supertokens.UserContext) (map[string]interface{}, error)
Types ¶
type Recipe ¶
type Recipe struct { RecipeModule supertokens.RecipeModule Config usermetadatamodels.TypeNormalisedInput RecipeImpl usermetadatamodels.RecipeInterface }
func GetRecipeInstanceOrThrowError ¶ added in v0.9.1
func MakeRecipe ¶
func MakeRecipe(recipeId string, appInfo supertokens.NormalisedAppinfo, config *usermetadatamodels.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.