Documentation
¶
Index ¶
- func Register(group *gin.RouterGroup, handler *Handler)
- type Handler
- func (h *Handler) BeginPasskeyLogin(c *gin.Context)
- func (h *Handler) BeginPasskeyRegistration(c *gin.Context)
- func (h *Handler) BindTOTP(c *gin.Context)
- func (h *Handler) ChangePassword(c *gin.Context)
- func (h *Handler) ClearEmail(c *gin.Context)
- func (h *Handler) CreateAPIKey(c *gin.Context)
- func (h *Handler) CreatePasskey(c *gin.Context)
- func (h *Handler) CurrentUser(c *gin.Context)
- func (h *Handler) CurrentUserBillingOverview(c *gin.Context)
- func (h *Handler) DeleteAPIKey(c *gin.Context)
- func (h *Handler) DeletePasskey(c *gin.Context)
- func (h *Handler) DeleteTOTP(c *gin.Context)
- func (h *Handler) ForgotPassword(c *gin.Context)
- func (h *Handler) GetCapabilities(c *gin.Context)
- func (h *Handler) ListAPIKeys(c *gin.Context)
- func (h *Handler) ListCurrentUserBillingCharges(c *gin.Context)
- func (h *Handler) Login(c *gin.Context)
- func (h *Handler) LoginPasskey(c *gin.Context)
- func (h *Handler) LoginTOTP(c *gin.Context)
- func (h *Handler) RegisterUser(c *gin.Context)
- func (h *Handler) RequestEmailVerification(c *gin.Context)
- func (h *Handler) ResetPassword(c *gin.Context)
- func (h *Handler) ShowTOTP(c *gin.Context)
- func (h *Handler) UpdateAPIKey(c *gin.Context)
- func (h *Handler) UpdateEmail(c *gin.Context)
- func (h *Handler) VerifyEmail(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(group *gin.RouterGroup, handler *Handler)
Register wires user API routes.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(repo *cluster.Repository, runtime *home.Runtime) *Handler
NewHandler creates a user API handler.
func (*Handler) BeginPasskeyLogin ¶
BeginPasskeyLogin returns WebAuthn assertion options for passkey login.
func (*Handler) BeginPasskeyRegistration ¶
BeginPasskeyRegistration returns WebAuthn creation options for the authenticated user.
func (*Handler) ChangePassword ¶
ChangePassword updates the authenticated user's password.
func (*Handler) ClearEmail ¶ added in v1.0.63
ClearEmail removes the authenticated user's email and invalidates email-bound security state.
func (*Handler) CreateAPIKey ¶
CreateAPIKey creates an API key owned by the authenticated user.
func (*Handler) CreatePasskey ¶
CreatePasskey creates a passkey entry for the authenticated user.
func (*Handler) CurrentUser ¶
CurrentUser returns the authenticated user profile.
func (*Handler) CurrentUserBillingOverview ¶
CurrentUserBillingOverview returns the billing overview for the authenticated user.
func (*Handler) DeleteAPIKey ¶
DeleteAPIKey deletes an API key owned by the authenticated user.
func (*Handler) DeletePasskey ¶
DeletePasskey deletes a passkey entry for the authenticated user.
func (*Handler) DeleteTOTP ¶
DeleteTOTP removes the authenticated user's TOTP configuration.
func (*Handler) ForgotPassword ¶ added in v1.0.63
ForgotPassword accepts recovery requests without revealing account state.
func (*Handler) GetCapabilities ¶ added in v1.0.63
GetCapabilities reports optional User API features without exposing mail configuration.
func (*Handler) ListAPIKeys ¶
ListAPIKeys lists API keys owned by the authenticated user.
func (*Handler) ListCurrentUserBillingCharges ¶
ListCurrentUserBillingCharges returns billing charges for the authenticated user.
func (*Handler) LoginPasskey ¶
LoginPasskey handles passkey login.
func (*Handler) RegisterUser ¶
RegisterUser creates a user account.
func (*Handler) RequestEmailVerification ¶ added in v1.0.63
RequestEmailVerification queues a verification message for the current unverified email.
func (*Handler) ResetPassword ¶ added in v1.0.63
ResetPassword consumes a reset token and sets a new password without bypassing MFA or Passkeys.
func (*Handler) UpdateAPIKey ¶
UpdateAPIKey updates an API key owned by the authenticated user.
func (*Handler) UpdateEmail ¶ added in v1.0.63
UpdateEmail adds or replaces the authenticated user's optional email.
func (*Handler) VerifyEmail ¶ added in v1.0.63
VerifyEmail consumes a single-use email-verification token.