Skip to content

Conversation

@bojeil-google
Copy link
Contributor

@bojeil-google bojeil-google commented Apr 17, 2020

Fixes #846

RELEASE NOTE: Exposed email, email_verified, phone_number and picture fields from the DecodedIdToken type.

@hiranya911 hiranya911 changed the title Defines missing DecodedIdToken types. fix(auth): Defines missing DecodedIdToken types. Apr 17, 2020
@hiranya911 hiranya911 requested a review from egilmorez April 17, 2020 20:27
Copy link
Contributor

@hiranya911 hiranya911 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Over to @egilmorez for doc review.

@hiranya911 hiranya911 removed their assignment Apr 17, 2020
Copy link
Contributor

@egilmorez egilmorez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some suggestions and questions, thanks!

src/auth.d.ts Outdated
auth_time: number;

/**
* The email corresponding to the user who the ID token belonged to, if available.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The email of the user to whom the ID token belonged, if available.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

src/auth.d.ts Outdated
email?: string;

/**
* Whether the email corresponding to the user who the ID token belonged to is
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest "Whether or not the email of the user to whom the ID token belonged is verified, provided the user has an email."

Are the valid values true and false?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, true or false. Done.

src/auth.d.ts Outdated
iss: string;

/**
* The phone number corresponding to the user who the ID token belonged to,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest "The phone number of the user to whom the ID token belonged, if available."

Or -- can these be present tense "belongs?" That would be preferable if it is accurate.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done on both.

src/auth.d.ts Outdated
phone_number?: string;

/**
* The photo URL corresponding to the user who the ID token belonged to,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest "The photo URL for the user to whom the ID token belonged..."

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DecodedIDToken interface is missing fields

3 participants