Update docs in jwt.go.

This commit is contained in:
Wenlei (Frank) He 2019-04-14 15:11:36 -07:00
parent b33c8d1d83
commit a5a809ae12
1 changed files with 6 additions and 2 deletions

View File

@ -67,11 +67,15 @@ type Config struct {
// intended audience. // intended audience.
Audience string Audience string
// PrivateClaims optionally specifies custom private claims in the JWT.
// See http://tools.ietf.org/html/draft-jones-json-web-token-10#section-4.3 // See http://tools.ietf.org/html/draft-jones-json-web-token-10#section-4.3
// PrivateClaims optionally specifies custome private claims in the JWT. //
// Private claim values can be different types, therefore interface{} is
// used and marshalled using custom code.
PrivateClaims map[string]interface{} PrivateClaims map[string]interface{}
// UseIDToken optionally uses ID token instead of access token. // UseIDToken optionally uses ID token instead of access token when
// server returns both 'access_token' and 'id_token'.
UseIDToken bool UseIDToken bool
} }