Documentation ¶
Index ¶
Constants ¶
View Source
const PluginName = "/api/v1/auth"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OtpRequest ¶
type OtpRequest struct {
Password string `json:"password,omitempty" validate:"required,numeric,len=6"`
}
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
type RefreshTokenRequest ¶
type RefreshTokenRequest struct {
RefreshToken string `json:"refresh_token" validate:"required,uuid4"`
}
type SignInRequest ¶
type SignUpRequest ¶
type SignUpRequest struct { Username string `json:"username,omitempty" validate:"required,min=3,max=254"` Email string `json:"email,omitempty" validate:"required,email,min=3,max=254"` Password string `json:"password" validate:"required,eqfield=RepeatPassword,min=8,max=64"` RepeatPassword string `json:"repeat_password" validate:"required,min=8,max=64"` }
type SignUpResponse ¶
Click to show internal directories.
Click to hide internal directories.