package
Version:
v0.5.3
Opens a new window with list of versions in this module.
Published: Jan 12, 2026
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type CreateAPIKeyRequest struct {
Name string `json:"name" validate:"required"`
ExpiresInDays int `json:"expires_in_days"`
}
type ListUsersResponse struct {
Users []*user.User `json:"users"`
Total int `json:"total"`
Limit int `json:"limit"`
Offset int `json:"offset"`
}
type LoginRequest struct {
Username string `json:"username" validate:"required"`
Password string `json:"password" validate:"required"`
}
type OAuthLinkRequest struct {
UserID string `json:"user_id" validate:"required"`
Provider string `json:"provider" validate:"required"`
ProviderUserID string `json:"provider_user_id" validate:"required"`
UserInfo map[string]interface{} `json:"user_info" validate:"required"`
}
type TokenResponse struct {
AccessToken string `json:"access_token"`
TokenType string `json:"token_type"`
ExpiresIn int64 `json:"expires_in"`
RequiresPasswordChange bool `json:"requires_password_change"`
RedirectURI string `json:"redirect_uri,omitempty"`
}
type UpdatePasswordRequest struct {
NewPassword string `json:"new_password" validate:"required,min=8"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.