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
|
||||
}
|
||||
|
||||
type Login struct {
|
||||
AccessToken string `json:"access_token"`
|
||||
TokenType string `json:"token_type"`
|
||||
ExpiresIn int64 `json:"expires_in"`
|
||||
type LoginResult struct {
|
||||
UserId uuid.UUID `json:"user_id"`
|
||||
AccessToken string `json:"access_token"`
|
||||
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