From a5a809ae1217ee156ae601d192ac746c27c4fc28 Mon Sep 17 00:00:00 2001 From: "Wenlei (Frank) He" Date: Sun, 14 Apr 2019 15:11:36 -0700 Subject: [PATCH] Update docs in jwt.go. --- jwt/jwt.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/jwt/jwt.go b/jwt/jwt.go index 4caa964..1faa971 100644 --- a/jwt/jwt.go +++ b/jwt/jwt.go @@ -67,11 +67,15 @@ type Config struct { // intended audience. 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 - // 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{} - // 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 }