Documentation
¶
Overview ¶
SPDX-License-Identifier: AGPL-3.0-or-later
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct {
Sub string `json:"sub"` // Unique identifier (OAuth sub claim or email for MagicLink)
Email string `json:"email"` // User's email address
Name string `json:"name"` // Display name (optional)
}
User represents an authenticated user across all layers of the application. This is the canonical user representation used by auth providers, domain models, and API handlers.
func (*User) NormalizedEmail ¶
NormalizedEmail returns the email in lowercase for comparison.
Click to show internal directories.
Click to hide internal directories.