user

package
v0.0.0-...-836d277 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Endpoint = os.Getenv("Endpoint")
View Source
var M2MID = os.Getenv("M2M_Id")
View Source
var M2MSecret = os.Getenv("M2M_Secret")

Functions

func UpdateUserMetaData

func UpdateUserMetaData(userId string, customData map[string]interface{}) error

Types

type CustomData

type CustomData map[string]interface{}

type PatchBody

type PatchBody struct {
	CustomData CustomData `json:"customData"`
}

type User

type User struct {
	Id            string                 `json:"id"`
	Username      string                 `json:"username"`
	PrimaryEmail  string                 `json:"primaryEmail"`
	PrimaryPhone  string                 `json:"primaryPhone"`
	Name          string                 `json:"name"`
	Avatar        string                 `json:"avatar"`
	CustomData    map[string]interface{} `json:"customData"`
	LastSignInAt  int                    `json:"lastSignInAt"`
	CreatedAt     int                    `json:"createdAt"`
	ApplicationId string                 `json:"applicationId"`
	IsSuspended   bool                   `json:"isSuspended"`
	HasPassword   bool                   `json:"hasPassword"`
}

func GetUserProfile

func GetUserProfile(userId string) (*User, error)

Jump to

Keyboard shortcuts

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