Skip to content

Conversation

@bojeil-google
Copy link
Contributor

Adds missing multi-factor related claims to the DecodedIdToken interface.

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 with a nit.

src/index.d.ts Outdated
interface MultiFactorInfo {

/**
* The unique identifier of the enrolled second factor.
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: This is the user's unique ID from the 2nd factor right? Perhaps make that a bit clear.

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.

@hiranya911 hiranya911 removed their assignment Jan 17, 2020
src/index.d.ts Outdated
interface MultiFactorInfo {

/**
* The user's unique ID of the enrolled second factor.
Copy link
Contributor

Choose a reason for hiding this comment

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

The ID of the enrolled second factor. This ID is unique to the user.

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/index.d.ts Outdated
uid: string;

/**
* The optional display name for an enrolled second factor.
Copy link
Contributor

Choose a reason for hiding this comment

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

The optional display name of the enrolled second factor.

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/index.d.ts Outdated
enrollmentTime?: string;

/**
* The second factor type identifier. For SMS second factor, this is `"phone"`.
Copy link
Contributor

Choose a reason for hiding this comment

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

The type identifier of the second factor. For SMS second factors, this is phone.

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/index.d.ts Outdated
tenantId?: string | null;

/**
* The multi-factor related properties for the current user 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.

user, if

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/index.d.ts Outdated
}>;

/**
* List of enrolled second factors on the current user record.
Copy link
Contributor

Choose a reason for hiding this comment

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

List of second factors enrolled with the current user.

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/index.d.ts Outdated
}> | null;

/**
* The user's updated list of enrolled second factors. The provided list will always
Copy link
Contributor

Choose a reason for hiding this comment

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

The updated list of enrolled second factors. The provided list overwrites the user's existing list of second factors. When null is passed, all of the user's existing second factors are removed.

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/index.d.ts Outdated
sign_in_provider: string;

/**
* This is the type identifier or `factorId` of the second factor, provided the
Copy link
Contributor

Choose a reason for hiding this comment

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

The type identifier..

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/index.d.ts Outdated
sign_in_second_factor?: string;

/**
* This is the `uid` of the second factor used to sign in, provided the
Copy link
Contributor

Choose a reason for hiding this comment

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

The uid of..

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.

@bojeil-google bojeil-google merged commit f7b445d into auth-mfa Jan 22, 2020
@bojeil-google bojeil-google deleted the auth-mfa-temp branch March 7, 2020 02:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants