Skip to content

Commit aee079b

Browse files
committed
PR comments
PR comments
1 parent dc447bd commit aee079b

3 files changed

Lines changed: 18 additions & 16 deletions

File tree

src/phone-number-verification/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
/**
2-
* Firebase Phone Number Verification.
3-
*
4-
* @packageDocumentation
5-
*/
6-
71
/*!
82
* @license
93
* Copyright 2025 Google LLC
@@ -21,6 +15,12 @@
2115
* limitations under the License.
2216
*/
2317

18+
/**
19+
* Firebase Phone Number Verification.
20+
*
21+
* @packageDocumentation
22+
*/
23+
2424
import { App, getApp } from '../app';
2525
import { FirebaseApp } from '../app/firebase-app';
2626
import { PhoneNumberVerification } from './phone-number-verification';

src/phone-number-verification/phone-number-verification-api.ts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,33 +24,35 @@ export interface PhoneNumberVerificationToken {
2424
* The issuer identifier for the issuer of the response.
2525
* This value is a URL with the format
2626
* `https://fpnv.googleapis.com/projects/<PROJECT_NUMBER>`, where `<PROJECT_NUMBER>` is the
27+
* project number of your Firebase project, and the
2728
* same project number specified in the {@link PhoneNumberVerificationToken.aud} property.
2829
*/
2930
iss: string;
3031

3132
/**
3233
* The audience for which this token is intended.
33-
* This value is a string array, one of which is a URL with the format
34-
* `https://fpnv.googleapis.com/projects/<PROJECT_NUMBER>`, where `<PROJECT_NUMBER>` is the
35-
* project number of your Firebase project.
34+
* This value is a JSON array of two strings, the first is the project number of your
35+
* Firebase project, and the second is the project ID of the same project.
3636
*/
3737
aud: string[];
3838

3939
/**
40-
* The PhoneNumberVerification token's expiration time, in seconds since the Unix epoch. That is, the
41-
* time at which this PhoneNumberVerification token expires and should no longer be considered valid.
40+
* The PhoneNumber Verification token's expiration time, in seconds since the Unix epoch. That is, the
41+
* time at which this PhoneNumber Verification token expires and should no longer be considered valid.
4242
*/
4343
exp: number;
4444

4545
/**
46-
* The PhoneNumberVerification token's issued-at time, in seconds since the Unix epoch. That is, the
47-
* time at which this PhoneNumberVerification token was issued and should start to be considered
46+
* The PhoneNumber Verification token's issued-at time, in seconds since the Unix epoch. That is, the
47+
* time at which this PhoneNumber Verification token was issued and should start to be considered
4848
* valid.
4949
*/
5050
iat: number;
5151

5252
/**
53-
* The phone number of User.
53+
* The phone number corresponding to this token.
54+
* As a convenience, this value is copied over to the
55+
* {@link PhoneNumberVerificationToken.phoneNumber | phoneNumber} property.
5456
*/
5557
sub: string;
5658

src/phone-number-verification/phone-number-verification.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ export class PhoneNumberVerification {
5353
}
5454

5555
/**
56-
* Verifies a Firebase Phone Number Verification token (JWT).
56+
* Verifies a Firebase Phone Number Verification token.
5757
*
58-
* @param jwt - The JWT string to verify.
58+
* @param jwt - A string containing the Firebase Phone Number Verification JWT.
5959
* @returns A promise that resolves with the decoded token.
6060
*/
6161
public verifyToken(jwt: string): Promise<PhoneNumberVerificationToken> {

0 commit comments

Comments
 (0)