usermetadata

package
v0.0.0-...-bd06354 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const RECIPE_ID = "usermetadata"

Variables

This section is empty.

Functions

func AfterEach

func AfterEach()

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 ResetForTest

func ResetForTest()

func UpdateUserMetadata

func UpdateUserMetadata(userID string, metadataUpdate map[string]interface{}, userContext ...supertokens.UserContext) (map[string]interface{}, error)

Types

type Recipe

func GetRecipeInstanceOrThrowError

func GetRecipeInstanceOrThrowError() (*Recipe, error)

func MakeRecipe

func MakeRecipe(recipeId string, appInfo supertokens.NormalisedAppinfo, config *usermetadatamodels.TypeInput, onSuperTokensAPIError 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