Skip to content

Commit

Permalink
Merge pull request #136 from piepacker/gregory/add-expire-field
Browse files Browse the repository at this point in the history
Add ExpiresIn field in validate token response
  • Loading branch information
nicklaw5 committed Jun 17, 2022
2 parents aac7e6c + 59e8406 commit 187a8a8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions authentication.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,11 @@ type ValidateTokenResponse struct {
}

type validateTokenDetails struct {
ClientID string `json:"client_id"`
Login string `json:"login"`
Scopes []string `json:"scopes"`
UserID string `json:"user_id"`
ClientID string `json:"client_id"`
Login string `json:"login"`
Scopes []string `json:"scopes"`
UserID string `json:"user_id"`
ExpiresIn int `json:"expires_in"`
}

// ValidateToken - Validate access token
Expand Down

0 comments on commit 187a8a8

Please sign in to comment.