Skip to content

Commit 4195817

Browse files
committed
PR feedback
1 parent 8b30abb commit 4195817

File tree

2 files changed

+28
-28
lines changed

2 files changed

+28
-28
lines changed

common/api-review/auth-exp.api.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ export interface ActionCodeInfo {
2525

2626
// @public
2727
export const ActionCodeOperation: {
28-
EMAIL_SIGNIN: string;
29-
PASSWORD_RESET: string;
30-
RECOVER_EMAIL: string;
31-
REVERT_SECOND_FACTOR_ADDITION: string;
32-
VERIFY_AND_CHANGE_EMAIL: string;
33-
VERIFY_EMAIL: string;
28+
readonly EMAIL_SIGNIN: "EMAIL_SIGNIN";
29+
readonly PASSWORD_RESET: "PASSWORD_RESET";
30+
readonly RECOVER_EMAIL: "RECOVER_EMAIL";
31+
readonly REVERT_SECOND_FACTOR_ADDITION: "REVERT_SECOND_FACTOR_ADDITION";
32+
readonly VERIFY_AND_CHANGE_EMAIL: "VERIFY_AND_CHANGE_EMAIL";
33+
readonly VERIFY_EMAIL: "VERIFY_EMAIL";
3434
};
3535

3636
// @public
@@ -240,7 +240,7 @@ export class FacebookAuthProvider extends BaseOAuthProvider {
240240

241241
// @public
242242
export const FactorId: {
243-
PHONE: string;
243+
readonly PHONE: "phone";
244244
};
245245

246246
// @public
@@ -406,9 +406,9 @@ export function onIdTokenChanged(auth: Auth, nextOrObserver: NextOrObserver<User
406406

407407
// @public
408408
export const OperationType: {
409-
LINK: string;
410-
REAUTHENTICATE: string;
411-
SIGN_IN: string;
409+
readonly LINK: "link";
410+
readonly REAUTHENTICATE: "reauthenticate";
411+
readonly SIGN_IN: "signIn";
412412
};
413413

414414
// @public
@@ -503,12 +503,12 @@ export const prodErrorMap: AuthErrorMap;
503503

504504
// @public
505505
export const ProviderId: {
506-
FACEBOOK: string;
507-
GITHUB: string;
508-
GOOGLE: string;
509-
PASSWORD: string;
510-
PHONE: string;
511-
TWITTER: string;
506+
readonly FACEBOOK: "facebook.com";
507+
readonly GITHUB: "github.com";
508+
readonly GOOGLE: "google.com";
509+
readonly PASSWORD: "password";
510+
readonly PHONE: "phone";
511+
readonly TWITTER: "twitter.com";
512512
};
513513

514514
// @public
@@ -578,13 +578,13 @@ export function signInAnonymously(auth: Auth): Promise<UserCredential>;
578578

579579
// @public
580580
export const SignInMethod: {
581-
EMAIL_LINK: string;
582-
EMAIL_PASSWORD: string;
583-
FACEBOOK: string;
584-
GITHUB: string;
585-
GOOGLE: string;
586-
PHONE: string;
587-
TWITTER: string;
581+
readonly EMAIL_LINK: "emailLink";
582+
readonly EMAIL_PASSWORD: "password";
583+
readonly FACEBOOK: "facebook.com";
584+
readonly GITHUB: "github.com";
585+
readonly GOOGLE: "google.com";
586+
readonly PHONE: "phone";
587+
readonly TWITTER: "twitter.com";
588588
};
589589

590590
// @public

packages-exp/auth-exp/src/model/enum_maps.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
export const FactorId = {
2424
/** Phone as second factor */
2525
PHONE: 'phone'
26-
};
26+
} as const;
2727

2828
/**
2929
* Enumeration of supported providers.
@@ -43,7 +43,7 @@ export const ProviderId = {
4343
PHONE: 'phone',
4444
/** Twitter provider ID */
4545
TWITTER: 'twitter.com'
46-
};
46+
} as const;
4747

4848
/**
4949
* Enumeration of supported sign-in methods.
@@ -65,7 +65,7 @@ export const SignInMethod = {
6565
PHONE: 'phone',
6666
/** Twitter sign in method */
6767
TWITTER: 'twitter.com'
68-
};
68+
} as const;
6969

7070
/**
7171
* Enumeration of supported operation types.
@@ -79,7 +79,7 @@ export const OperationType = {
7979
REAUTHENTICATE: 'reauthenticate',
8080
/** Operation involving signing in a user. */
8181
SIGN_IN: 'signIn'
82-
};
82+
} as const;
8383

8484
/**
8585
* An enumeration of the possible email action types.
@@ -99,4 +99,4 @@ export const ActionCodeOperation = {
9999
VERIFY_AND_CHANGE_EMAIL: 'VERIFY_AND_CHANGE_EMAIL',
100100
/** The email verification action. */
101101
VERIFY_EMAIL: 'VERIFY_EMAIL'
102-
};
102+
} as const;

0 commit comments

Comments
 (0)