Skip to content

Commit 6d88f26

Browse files
author
Hein
committed
Updated login interface with meta
1 parent 8a9423d commit 6d88f26

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pkg/security/interfaces.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@ type LoginRequest struct {
2929

3030
// LoginResponse contains the result of a login attempt
3131
type LoginResponse struct {
32-
Token string `json:"token"`
33-
RefreshToken string `json:"refresh_token"`
34-
User *UserContext `json:"user"`
35-
ExpiresIn int64 `json:"expires_in"` // Token expiration in seconds
32+
Token string `json:"token"`
33+
RefreshToken string `json:"refresh_token"`
34+
User *UserContext `json:"user"`
35+
ExpiresIn int64 `json:"expires_in"` // Token expiration in seconds
36+
Meta map[string]any `json:"meta"` // Additional metadata to be set on user context
3637
}
3738

3839
// LogoutRequest contains information for logout

0 commit comments

Comments
 (0)