Documentation ¶
Index ¶
- type APIInterface
- type APIOptions
- type AccessTokenAPI
- type AppleClientSecret
- type AppleConfig
- type AuthorisationRedirect
- type AuthorisationUrlGETResponse
- type EmailStruct
- type FacebookConfig
- type GithubConfig
- type GoogleConfig
- type OverrideStruct
- type RecipeInterface
- type SignInUpPOSTResponse
- type SignInUpResponse
- type TypeInput
- type TypeInputEmailVerificationFeature
- type TypeInputSignInAndUp
- type TypeNormalisedInput
- type TypeNormalisedInputSignInAndUp
- type TypeProvider
- type TypeProviderGetResponse
- type User
- type UserInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIInterface ¶
type APIInterface struct { AuthorisationUrlGET *func(provider TypeProvider, options APIOptions) (AuthorisationUrlGETResponse, error) SignInUpPOST *func(provider TypeProvider, code string, authCodeResponse interface{}, redirectURI string, options APIOptions) (SignInUpPOSTResponse, error) AppleRedirectHandlerPOST *func(code string, state string, options APIOptions) error }
type APIOptions ¶
type APIOptions struct { RecipeImplementation RecipeInterface EmailVerificationRecipeImplementation evmodels.RecipeInterface Config TypeNormalisedInput RecipeID string Providers []TypeProvider Req *http.Request Res http.ResponseWriter OtherHandler http.HandlerFunc AppInfo supertokens.NormalisedAppinfo }
type AccessTokenAPI ¶
type AppleClientSecret ¶ added in v0.2.0
type AppleConfig ¶ added in v0.2.0
type AppleConfig struct { ClientID string ClientSecret AppleClientSecret Scope []string AuthorisationRedirect *struct { Params map[string]interface{} } IsDefault bool }
type AuthorisationRedirect ¶
type AuthorisationUrlGETResponse ¶
type AuthorisationUrlGETResponse struct {
OK *struct{ Url string }
}
type EmailStruct ¶
type FacebookConfig ¶
type GithubConfig ¶
type GoogleConfig ¶
type OverrideStruct ¶
type OverrideStruct struct { Functions func(originalImplementation RecipeInterface) RecipeInterface APIs func(originalImplementation APIInterface) APIInterface EmailVerificationFeature *evmodels.OverrideStruct }
type RecipeInterface ¶
type RecipeInterface struct { GetUserByID *func(userID string) (*User, error) GetUsersByEmail *func(email string) ([]User, error) GetUserByThirdPartyInfo *func(thirdPartyID string, thirdPartyUserID string) (*User, error) SignInUp *func(thirdPartyID string, thirdPartyUserID string, email EmailStruct) (SignInUpResponse, error) }
type SignInUpPOSTResponse ¶
type SignInUpResponse ¶
type TypeInput ¶
type TypeInput struct { SignInAndUpFeature TypeInputSignInAndUp EmailVerificationFeature *TypeInputEmailVerificationFeature Override *OverrideStruct }
type TypeInputSignInAndUp ¶
type TypeInputSignInAndUp struct {
Providers []TypeProvider
}
type TypeNormalisedInput ¶
type TypeNormalisedInput struct { SignInAndUpFeature TypeNormalisedInputSignInAndUp EmailVerificationFeature evmodels.TypeInput Override OverrideStruct }
type TypeNormalisedInputSignInAndUp ¶
type TypeNormalisedInputSignInAndUp struct {
Providers []TypeProvider
}
type TypeProvider ¶
type TypeProvider struct { ID string Get func(redirectURI *string, authCodeFromRequest *string) TypeProviderGetResponse IsDefault bool }
type TypeProviderGetResponse ¶
type TypeProviderGetResponse struct { AccessTokenAPI AccessTokenAPI AuthorisationRedirect AuthorisationRedirect GetProfileInfo func(authCodeResponse interface{}) (UserInfo, error) GetClientId func() string GetRedirectURI func() (string, error) }
type UserInfo ¶
type UserInfo struct { ID string Email *EmailStruct }
Click to show internal directories.
Click to hide internal directories.