Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LoginInput ¶
type RegisterInput ¶
type RegisterInput struct { Email string `json:"email" validate:"required,email" example:"john.doe@gmail.com"` Password string `json:"password" validate:"required" example:"1234qwer"` PasswordConfirm string `json:"password_confirm" validate:"required,eqfield=Password" example:"1234qwer"` FirstName string `json:"first_name,omitempty" validate:"required" example:"John"` LastName string `json:"last_name,omitempty" validate:"required" example:"Doe"` }
type TokenResponse ¶
type TokenResponse struct { AccessToken string `json:"access_token"` RefreshToken string `json:"refresh_token"` }
func RefreshToken ¶
func RefreshToken(r *http.Request) (*TokenResponse, *ec.Error)
type User ¶
type User struct { ID string `json:"id"` FirstName sql.NullString `json:"first_name"` LastName sql.NullString `json:"last_name"` Email string `json:"email"` EmailHash string `json:"-"` EmailVerifiedAt sql.NullTime `json:"email_verified_at"` Password string `json:"-"` CreatedAt sql.NullTime `json:"created_at"` UpdatedAt sql.NullTime `json:"updated_at"` DeletedAt sql.NullTime `json:"deleted_at"` }
User a clone of queries.User{} from sqlc/queries/models.go
func (*User) DecryptEmail ¶
func (*User) MarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.