Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(types): add additional fields to TokenInfo #907

Merged
merged 2 commits into from Mar 1, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/auth/oauth2client.ts
Expand Up @@ -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 {
Expand Down