Documentation ¶
Index ¶
- type AuthenticationRequest
- type AuthenticationResponse
- type CompletePasswordLessRequest
- type EnableTOTPResponse
- type EnableTwoFactorRequest
- type GeneralErrorResponse
- type JSONB
- type PasswordLessAuthRequest
- type PasswordLessAuthResponse
- type PasswordResetRequest
- type SuccessResponse
- type TokenRefreshRequest
- type User
- type UserRegistrationRequest
- type UserUpdateRequest
- type VerifyChangePasswordRequest
- type VerifyPassCodeRequest
- type VerifyTwoFactorRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticationRequest ¶
type AuthenticationResponse ¶
type AuthenticationResponse struct { Token string `json:"token"` RefreshToken string `json:"refreshToken,omitempty"` Roles []string `json:"roles,omitempty"` Expires int `json:"expiresIn,omitempty"` TwoFactorEnabled bool `json:"twoFactorEnabled"` TwoFactorMethod string `json:"twoFactorMethod,omitempty"` }
type EnableTOTPResponse ¶
type EnableTOTPResponse struct {
URL string `json:"url"`
}
type EnableTwoFactorRequest ¶
type EnableTwoFactorRequest struct {
Method string `json:"method"`
}
type GeneralErrorResponse ¶
type PasswordLessAuthRequest ¶
type PasswordResetRequest ¶
type PasswordResetRequest struct {
Username string `json:"username" validate:"required"`
}
type SuccessResponse ¶
type SuccessResponse struct {
Success bool `json:"success"`
}
type TokenRefreshRequest ¶
type TokenRefreshRequest struct {
RefreshToken string `json:"refreshToken"`
}
type User ¶
type User struct { ID int `json:"-"` UUID string `json:"id"` Username string `json:"username"` EmailAddress string `json:"emailAddress"` FirstName string `json:"firstName"` LastName string `json:"lastName"` CellNumber string `json:"cellNumber"` Roles []string `json:"roles"` Active bool `json:"active"` TwoFactorEnabled bool `json:"twoFactorEnabled"` TwoFactorMethod string `json:"twoFactorMethod"` TOTPSecret string `json:"-"` TOTPURL string `json:"-"` Metadata JSONB `json:"metadata"` }
type UserRegistrationRequest ¶
type UserRegistrationRequest struct { Username string `json:"username" validate:"required"` Password string `json:"password" validate:"required"` EmailAddress string `json:"emailAddress" validate:"required"` FirstName string `json:"firstName" validate:"required"` LastName string `json:"lastName" validate:"required"` CellNumber string `json:"cellNumber" validate:"required"` }
type UserUpdateRequest ¶
type VerifyPassCodeRequest ¶
type VerifyPassCodeRequest struct {
Code string `json:"code"`
}
type VerifyTwoFactorRequest ¶
Click to show internal directories.
Click to hide internal directories.