Docs, code cleanups.

This commit is contained in:
Burcu Dogan
2014-08-12 19:50:34 -07:00
parent eb7270d354
commit a9dc52b3d3
2 changed files with 31 additions and 14 deletions

View File

@@ -30,6 +30,10 @@ type Token struct {
// The remaining lifetime of the access token.
Expiry time.Time `json:"expiry,omitempty"`
// Extra optionally contains extra metadata from the server
// when updating a token. The only current key that may be
// populated is "id_token". It may be nil and will be
// initialized as needed.
Extra map[string]string `json:"extra,omitempty"`
// JWT related fields