mirror of
https://github.com/bitechdev/ResolveSpec.git
synced 2025-12-13 17:10:36 +00:00
Updated login interface with meta
This commit is contained in:
parent
8a9423df6d
commit
6d88f2668a
@ -29,10 +29,11 @@ type LoginRequest struct {
|
|||||||
|
|
||||||
// LoginResponse contains the result of a login attempt
|
// LoginResponse contains the result of a login attempt
|
||||||
type LoginResponse struct {
|
type LoginResponse struct {
|
||||||
Token string `json:"token"`
|
Token string `json:"token"`
|
||||||
RefreshToken string `json:"refresh_token"`
|
RefreshToken string `json:"refresh_token"`
|
||||||
User *UserContext `json:"user"`
|
User *UserContext `json:"user"`
|
||||||
ExpiresIn int64 `json:"expires_in"` // Token expiration in seconds
|
ExpiresIn int64 `json:"expires_in"` // Token expiration in seconds
|
||||||
|
Meta map[string]any `json:"meta"` // Additional metadata to be set on user context
|
||||||
}
|
}
|
||||||
|
|
||||||
// LogoutRequest contains information for logout
|
// LogoutRequest contains information for logout
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user