Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IAuth ¶
type IAuth interface { SignUp(credentials interface{}) (*auth.Res, error) SignIn(credentials interface{}) (interface{}, error) RefreshUser(userToken string, refreshToken string) (*interface{}, error) ExchangeCode(opts interface{}) (*interface{}, error) SendMagicLink(email string) error SignInWithProvider(opts interface{}) (*interface{}, error) User(userToken string) (*User, error) UpdateUser(userToken string, updateData map[string]interface{}) (*User, error) ResetPasswordForEmail(email string) error SignOut(userToken string) error ConvertForDomain(v auth.User) (User, error) }
func NewRepository ¶
type User ¶
type User struct { ID string `json:"id"` Aud string `json:"aud"` Role string `json:"role"` Email string `json:"email"` InvitedAt time.Time `json:"invited_at"` ConfirmedAt time.Time `json:"confirmed_at"` ConfirmationSentAt time.Time `json:"confirmation_sent_at"` AppMetadata struct { // contains filtered or unexported fields } `json:"app_metadata"` UserMetadata map[string]interface{} `json:"user_metadata"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
Click to show internal directories.
Click to hide internal directories.