Documentation ¶
Index ¶
- func AnalyticsPost(apiInterface dashboardmodels.APIInterface, tenantId string, ...) (analyticsPostResponse, error)
- func Dashboard(apiImplementation dashboardmodels.APIInterface, ...) error
- func GetUserForRecipeId(userId string, recipeId string, userContext supertokens.UserContext) (user dashboardmodels.UserType, recipe string)
- func IsRecipeInitialised(recipeId string) bool
- func IsValidRecipeId(recipeId string) bool
- func MakeAPIImplementation() dashboardmodels.APIInterface
- func SignInPost(apiInterface dashboardmodels.APIInterface, options dashboardmodels.APIOptions, ...) error
- func SignOutPost(apiInterface dashboardmodels.APIInterface, tenantId string, ...) (signOutPostResponse, error)
- func TenantsListGet(apiInterface dashboardmodels.APIInterface, tenantId string, ...) (tenantsListResponse, error)
- func UsersCountGet(apiImplementation dashboardmodels.APIInterface, tenantId string, ...) (usersCountGetResponse, error)
- func ValidateKey(apiImplementation dashboardmodels.APIInterface, ...) error
- type User
- type Users
- type UsersGetResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnalyticsPost ¶
func AnalyticsPost(apiInterface dashboardmodels.APIInterface, tenantId string, options dashboardmodels.APIOptions, userContext supertokens.UserContext) (analyticsPostResponse, error)
func Dashboard ¶
func Dashboard(apiImplementation dashboardmodels.APIInterface, options dashboardmodels.APIOptions, userContext supertokens.UserContext) error
func GetUserForRecipeId ¶
func GetUserForRecipeId(userId string, recipeId string, userContext supertokens.UserContext) (user dashboardmodels.UserType, recipe string)
This function tries to fetch a user for the given user id and recipe id. The input recipe id should be one of the primary recipes (emailpassword, thirdparty, passwordless) but the returned recipe will be the exact recipe that matched for the user
When fetching a user we need to check for multiple recipes per input recipe id, for example a user created using email and password could be present for the EmailPassword recipe so we need to check for both.
If this function returns an empty user struct, it should be treated as if the user does not exist
func IsRecipeInitialised ¶
func IsValidRecipeId ¶
func MakeAPIImplementation ¶
func MakeAPIImplementation() dashboardmodels.APIInterface
func SignInPost ¶
func SignInPost(apiInterface dashboardmodels.APIInterface, options dashboardmodels.APIOptions, userContext supertokens.UserContext) error
func SignOutPost ¶
func SignOutPost(apiInterface dashboardmodels.APIInterface, tenantId string, options dashboardmodels.APIOptions, userContext supertokens.UserContext) (signOutPostResponse, error)
func TenantsListGet ¶
func TenantsListGet(apiInterface dashboardmodels.APIInterface, tenantId string, options dashboardmodels.APIOptions, userContext supertokens.UserContext) (tenantsListResponse, error)
func UsersCountGet ¶
func UsersCountGet(apiImplementation dashboardmodels.APIInterface, tenantId string, options dashboardmodels.APIOptions, userContext supertokens.UserContext) (usersCountGetResponse, error)
func ValidateKey ¶
func ValidateKey(apiImplementation dashboardmodels.APIInterface, options dashboardmodels.APIOptions, userContext supertokens.UserContext) error
Types ¶
type User ¶
type User struct { Id string `json:"id"` TimeJoined float64 `json:"timeJoined"` FirstName string `json:"firstName,omitempty"` LastName string `json:"lastName,omitempty"` Email string `json:"email,omitempty"` PhoneNumber string `json:"phoneNumber,omitempty"` ThirdParty dashboardmodels.ThirdParty `json:"thirdParty,omitempty"` TenantIds string `json:"tenantIds,omitempty"` }
type UsersGetResponse ¶
type UsersGetResponse struct { Status string `json:"status"` NextPaginationToken *string `json:"nextPaginationToken,omitempty"` Users []Users `json:"users"` }
func UsersGet ¶
func UsersGet(apiImplementation dashboardmodels.APIInterface, tenantId string, options dashboardmodels.APIOptions, userContext supertokens.UserContext) (UsersGetResponse, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.