2026-05-21 06:45:35 +00:00
|
|
|
// Package domain holds auth module domain definitions.
|
|
|
|
|
package domain
|
|
|
|
|
|
|
|
|
|
import "fmt"
|
|
|
|
|
|
|
|
|
|
// Module-wide sentinel errors for invite flows.
|
|
|
|
|
var (
|
|
|
|
|
ErrInviteNotFound = fmt.Errorf("auth: invite not found")
|
|
|
|
|
ErrInviteExpired = fmt.Errorf("auth: invite expired")
|
|
|
|
|
ErrInviteExhausted = fmt.Errorf("auth: invite exhausted")
|
|
|
|
|
ErrInviteLocked = fmt.Errorf("auth: invite consume locked")
|
|
|
|
|
ErrInviteCodeEmpty = fmt.Errorf("auth: invite code is empty")
|
|
|
|
|
ErrInviteTenantEmpty = fmt.Errorf("auth: tenant_id is empty")
|
|
|
|
|
ErrDuplicateRegistrationMeta = fmt.Errorf("auth: duplicate registration metadata")
|
|
|
|
|
ErrRegistrationSessionNotFound = fmt.Errorf("auth: registration session not found")
|
|
|
|
|
ErrLoginSessionNotFound = fmt.Errorf("auth: login session not found")
|
2026-05-26 16:55:37 +00:00
|
|
|
ErrLoginMFAChallengeNotFound = fmt.Errorf("auth: login mfa challenge not found")
|
2026-05-21 06:45:35 +00:00
|
|
|
)
|