usermetadata

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: Apache-2.0 Imports: 6 Imported by: 11

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) error

func ClearUserMetadataWithContext

func ClearUserMetadataWithContext(userID string, userContext supertokens.UserContext) error

func GetUserMetadata

func GetUserMetadata(userID string) (map[string]interface{}, error)

func GetUserMetadataWithContext

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

func ResetForTest

func ResetForTest()

func UpdateUserMetadata

func UpdateUserMetadata(userID string, metadataUpdate map[string]interface{}) (map[string]interface{}, error)

func UpdateUserMetadataWithContext

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

Types

type Recipe

func GetRecipeInstanceOrThrowError added in v0.9.1

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