Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthApi ¶ added in v1.0.0
type AuthApi struct {
UserRepository repository.UserRepository
}
func (*AuthApi) LegacyLogin ¶ added in v1.0.0
func (s *AuthApi) LegacyLogin() gin.HandlerFunc
Legacy Login logs users in
func (*AuthApi) Login ¶ added in v1.0.0
func (s *AuthApi) Login() gin.HandlerFunc
Login logs users in
type LegacyLoginPayload ¶
type LegacyLoginPayload struct { Username string `json:"username"` Email string `json:"email"` Password string `json:"password"` }
LoginPayload login body
type LoginPayload ¶
LoginPayload login body
type LoginResponse ¶
type LoginResponse struct {
Token string `json:"token"`
}
LoginResponse token response
Click to show internal directories.
Click to hide internal directories.