dashboardmodels

package
v0.10.6 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: Apache-2.0 Imports: 2 Imported by: 17

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIInterface

type APIInterface struct {
	DashboardGET *func(options APIOptions, userContext supertokens.UserContext) (string, error)
}

type APIOptions

type APIOptions struct {
	RecipeImplementation RecipeInterface
	AppInfo              supertokens.NormalisedAppinfo
	Config               TypeNormalisedInput
	RecipeID             string
	Req                  *http.Request
	Res                  http.ResponseWriter
	OtherHandler         http.HandlerFunc
}

type OverrideStruct

type OverrideStruct struct {
	Functions func(originalImplementation RecipeInterface) RecipeInterface
	APIs      func(originalImplementation APIInterface) APIInterface
}

type RecipeInterface

type RecipeInterface struct {
	GetDashboardBundleLocation *func(userContext supertokens.UserContext) (string, error)
	ShouldAllowAccess          *func(req *http.Request, config TypeNormalisedInput, userContext supertokens.UserContext) (bool, error)
}

type ThirdParty added in v0.9.9

type ThirdParty struct {
	Id     string `json:"id"`
	UserId string `json:"userId"`
}

type TypeAuthMode added in v0.10.2

type TypeAuthMode string
const (
	AuthModeEmailPassword TypeAuthMode = "email-password"
	AuthModeAPIKey        TypeAuthMode = "api-key"
)

type TypeInput

type TypeInput struct {
	ApiKey   string
	Override *OverrideStruct
}

type TypeNormalisedInput

type TypeNormalisedInput struct {
	ApiKey   string
	AuthMode TypeAuthMode
	Override OverrideStruct
}

type UserType added in v0.9.9

type UserType struct {
	Id         string      `json:"id,omitempty"`
	TimeJoined uint64      `json:"timeJoined,omitempty"`
	FirstName  string      `json:"firstName,omitempty"`
	LastName   string      `json:"lastName,omitempty"`
	Email      string      `json:"email,omitempty"`
	ThirdParty *ThirdParty `json:"thirdParty,omitempty"`
	Phone      string      `json:"phoneNumber,omitempty"`
}

Jump to

Keyboard shortcuts

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