From 5b48eb86c108c47d317a0eb96b47c0cae86f98cb Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Sat, 29 Feb 2020 20:52:10 -0800 Subject: [PATCH] fix(types): add additional fields to TokenInfo (#907) --- src/auth/oauth2client.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/auth/oauth2client.ts b/src/auth/oauth2client.ts index 44637972..21b16fb7 100644 --- a/src/auth/oauth2client.ts +++ b/src/auth/oauth2client.ts @@ -142,6 +142,18 @@ export interface TokenInfo { * tokens. */ access_type?: string; + + /** + * The user's email address. This value may not be unique to this user and + * is not suitable for use as a primary key. Provided only if your scope + * included the email scope value. + */ + email?: string; + + /** + * True if the user's e-mail address has been verified; otherwise false. + */ + email_verified?: boolean; } interface TokenInfoRequest {