tsk-15: Add User Id to LoginResult (#21)
Closes #15 Reviewed-on: phoenix/textsender-models#21 Co-authored-by: phoenix <kundeng00@pm.me> Co-committed-by: phoenix <kundeng00@pm.me>
This commit is contained in:
+9
-4
@@ -11,8 +11,13 @@ type Claims struct {
|
|||||||
jwt.RegisteredClaims
|
jwt.RegisteredClaims
|
||||||
}
|
}
|
||||||
|
|
||||||
type Login struct {
|
type LoginResult struct {
|
||||||
AccessToken string `json:"access_token"`
|
UserId uuid.UUID `json:"user_id"`
|
||||||
TokenType string `json:"token_type"`
|
AccessToken string `json:"access_token"`
|
||||||
ExpiresIn int64 `json:"expires_in"`
|
TokenType string `json:"token_type"`
|
||||||
|
ExpiresIn int64 `json:"expires_in"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Alias for LoginResult
|
||||||
|
// Will be deprecated at some point
|
||||||
|
type Login = LoginResult
|
||||||
|
|||||||
Reference in New Issue
Block a user