From f8ab7714c017fdb6bd15e44abd12be87c72ae089 Mon Sep 17 00:00:00 2001 From: Shin Fan Date: Thu, 24 Jun 2021 09:16:03 -0700 Subject: [PATCH] Print "id_token" from the JWT token if presented (#120) --- util/tasks.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/util/tasks.go b/util/tasks.go index 384743e..ff894ae 100644 --- a/util/tasks.go +++ b/util/tasks.go @@ -242,6 +242,9 @@ func marshalWithExtras(token *oauth2.Token, indent string) ([]byte, error) { if token.Extra("issued_token_type") != nil { m["issued_token_type"] = token.Extra("issued_token_type").(string) } + if token.Extra("id_token") != nil { + m["id_token"] = token.Extra("id_token").(string) + } return json.MarshalIndent(m, "", indent) }