@firebase/auth 0.21.6 → 0.22.0-canary.264909862

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +5 -0
  3. package/dist/auth-public.d.ts +2 -3
  4. package/dist/auth.d.ts +3 -12
  5. package/dist/browser-cjs/{index-39443020.js → index-243006ad.js} +5 -3
  6. package/dist/browser-cjs/index-243006ad.js.map +1 -0
  7. package/dist/browser-cjs/index.js +1 -1
  8. package/dist/browser-cjs/internal.js +1 -1
  9. package/dist/browser-cjs/src/core/errors.d.ts +1 -0
  10. package/dist/browser-cjs/src/core/index.d.ts +1 -0
  11. package/dist/browser-cjs/src/mfa/assertions/totp.d.ts +2 -2
  12. package/dist/cordova/index.js +2 -2
  13. package/dist/cordova/internal.js +2 -2
  14. package/dist/cordova/internal.js.map +1 -1
  15. package/dist/cordova/{popup_redirect-8b388294.js → popup_redirect-b9b96dd1.js} +5 -3
  16. package/dist/cordova/popup_redirect-b9b96dd1.js.map +1 -0
  17. package/dist/cordova/src/core/errors.d.ts +1 -0
  18. package/dist/cordova/src/core/index.d.ts +1 -0
  19. package/dist/cordova/src/mfa/assertions/totp.d.ts +2 -2
  20. package/dist/esm2017/{index-2d01563f.js → index-0fa3fbb8.js} +5 -3
  21. package/dist/esm2017/index-0fa3fbb8.js.map +1 -0
  22. package/dist/esm2017/index.js +1 -1
  23. package/dist/esm2017/internal.js +2 -2
  24. package/dist/esm2017/src/core/errors.d.ts +1 -0
  25. package/dist/esm2017/src/core/index.d.ts +1 -0
  26. package/dist/esm2017/src/mfa/assertions/totp.d.ts +2 -2
  27. package/dist/esm5/{index-44fc929c.js → index-47e940eb.js} +5 -3
  28. package/dist/esm5/index-47e940eb.js.map +1 -0
  29. package/dist/esm5/index.js +1 -1
  30. package/dist/esm5/internal.js +2 -2
  31. package/dist/esm5/src/core/errors.d.ts +1 -0
  32. package/dist/esm5/src/core/index.d.ts +1 -0
  33. package/dist/esm5/src/mfa/assertions/totp.d.ts +2 -2
  34. package/dist/index.webworker.esm5.js +4 -2
  35. package/dist/index.webworker.esm5.js.map +1 -1
  36. package/dist/node/index.js +1 -1
  37. package/dist/node/internal.js +1 -1
  38. package/dist/node/src/core/errors.d.ts +1 -0
  39. package/dist/node/src/core/index.d.ts +1 -0
  40. package/dist/node/src/mfa/assertions/totp.d.ts +2 -2
  41. package/dist/node/{totp-5e73d8e7.js → totp-9725eac9.js} +5 -3
  42. package/dist/node/totp-9725eac9.js.map +1 -0
  43. package/dist/node-esm/index.js +1 -1
  44. package/dist/node-esm/internal.js +2 -2
  45. package/dist/node-esm/src/core/errors.d.ts +1 -0
  46. package/dist/node-esm/src/core/index.d.ts +1 -0
  47. package/dist/node-esm/src/mfa/assertions/totp.d.ts +2 -2
  48. package/dist/node-esm/{totp-7b645f19.js → totp-7a7425da.js} +5 -3
  49. package/dist/node-esm/totp-7a7425da.js.map +1 -0
  50. package/dist/rn/index.js +1 -1
  51. package/dist/rn/internal.js +1 -1
  52. package/dist/rn/internal.js.map +1 -1
  53. package/dist/rn/{phone-ec210006.js → phone-aa0df1fb.js} +5 -3
  54. package/dist/rn/phone-aa0df1fb.js.map +1 -0
  55. package/dist/rn/src/core/errors.d.ts +1 -0
  56. package/dist/rn/src/core/index.d.ts +1 -0
  57. package/dist/rn/src/mfa/assertions/totp.d.ts +2 -2
  58. package/dist/src/core/errors.d.ts +1 -0
  59. package/dist/src/core/index.d.ts +1 -0
  60. package/dist/src/mfa/assertions/totp.d.ts +2 -2
  61. package/package.json +6 -6
  62. package/dist/browser-cjs/index-39443020.js.map +0 -1
  63. package/dist/cordova/popup_redirect-8b388294.js.map +0 -1
  64. package/dist/esm2017/index-2d01563f.js.map +0 -1
  65. package/dist/esm5/index-44fc929c.js.map +0 -1
  66. package/dist/node/totp-5e73d8e7.js.map +0 -1
  67. package/dist/node-esm/totp-7b645f19.js.map +0 -1
  68. package/dist/rn/phone-ec210006.js.map +0 -1
@@ -86,6 +86,7 @@ export declare const enum AuthErrorCode {
86
86
  MISSING_MFA_INFO = "missing-multi-factor-info",
87
87
  MISSING_MFA_SESSION = "missing-multi-factor-session",
88
88
  MISSING_PHONE_NUMBER = "missing-phone-number",
89
+ MISSING_PASSWORD = "missing-password",
89
90
  MISSING_SESSION_INFO = "missing-verification-id",
90
91
  MODULE_DESTROYED = "app-deleted",
91
92
  NEED_CONFIRMATION = "account-exists-with-different-credential",
@@ -43,6 +43,7 @@ export declare function setPersistence(auth: Auth, persistence: Persistence): Pr
43
43
  *
44
44
  * @remarks
45
45
  * This includes sign-in, sign-out, and token refresh events.
46
+ * This will not be triggered automatically upon ID token expiration. Use {@link User.getIdToken} to refresh the ID token.
46
47
  *
47
48
  * @param auth - The {@link Auth} instance.
48
49
  * @param nextOrObserver - callback triggered on change.
@@ -14,7 +14,7 @@
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- import { TotpMultiFactorAssertion, MultiFactorSession, FactorId } from '../../model/public_types';
17
+ import { TotpMultiFactorAssertion, MultiFactorSession } from '../../model/public_types';
18
18
  import { AuthInternal } from '../../model/auth';
19
19
  import { StartTotpMfaEnrollmentResponse, TotpVerificationInfo } from '../../api/account_management/mfa';
20
20
  import { FinalizeMfaResponse } from '../../api/authentication/mfa';
@@ -59,7 +59,7 @@ export declare class TotpMultiFactorGenerator {
59
59
  /**
60
60
  * The identifier of the TOTP second factor: `totp`.
61
61
  */
62
- static FACTOR_ID: FactorId;
62
+ static FACTOR_ID: 'totp';
63
63
  }
64
64
  export declare class TotpMultiFactorAssertionImpl extends MultiFactorAssertionImpl implements TotpMultiFactorAssertion {
65
65
  readonly otp: string;
@@ -86,6 +86,7 @@ export declare const enum AuthErrorCode {
86
86
  MISSING_MFA_INFO = "missing-multi-factor-info",
87
87
  MISSING_MFA_SESSION = "missing-multi-factor-session",
88
88
  MISSING_PHONE_NUMBER = "missing-phone-number",
89
+ MISSING_PASSWORD = "missing-password",
89
90
  MISSING_SESSION_INFO = "missing-verification-id",
90
91
  MODULE_DESTROYED = "app-deleted",
91
92
  NEED_CONFIRMATION = "account-exists-with-different-credential",
@@ -43,6 +43,7 @@ export declare function setPersistence(auth: Auth, persistence: Persistence): Pr
43
43
  *
44
44
  * @remarks
45
45
  * This includes sign-in, sign-out, and token refresh events.
46
+ * This will not be triggered automatically upon ID token expiration. Use {@link User.getIdToken} to refresh the ID token.
46
47
  *
47
48
  * @param auth - The {@link Auth} instance.
48
49
  * @param nextOrObserver - callback triggered on change.
@@ -14,7 +14,7 @@
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- import { TotpMultiFactorAssertion, MultiFactorSession, FactorId } from '../../model/public_types';
17
+ import { TotpMultiFactorAssertion, MultiFactorSession } from '../../model/public_types';
18
18
  import { AuthInternal } from '../../model/auth';
19
19
  import { StartTotpMfaEnrollmentResponse, TotpVerificationInfo } from '../../api/account_management/mfa';
20
20
  import { FinalizeMfaResponse } from '../../api/authentication/mfa';
@@ -59,7 +59,7 @@ export declare class TotpMultiFactorGenerator {
59
59
  /**
60
60
  * The identifier of the TOTP second factor: `totp`.
61
61
  */
62
- static FACTOR_ID: FactorId;
62
+ static FACTOR_ID: 'totp';
63
63
  }
64
64
  export declare class TotpMultiFactorAssertionImpl extends MultiFactorAssertionImpl implements TotpMultiFactorAssertion {
65
65
  readonly otp: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firebase/auth",
3
- "version": "0.21.6",
3
+ "version": "0.22.0-canary.264909862",
4
4
  "description": "The Firebase Authenticaton component of the Firebase JS SDK.",
5
5
  "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
6
6
  "main": "dist/node/index.js",
@@ -108,18 +108,18 @@
108
108
  "typings:public": "node ../../scripts/build/use_typings.js ./dist/auth-public.d.ts"
109
109
  },
110
110
  "peerDependencies": {
111
- "@firebase/app": "0.x"
111
+ "@firebase/app": "0.9.7-canary.264909862"
112
112
  },
113
113
  "dependencies": {
114
- "@firebase/component": "0.6.4",
115
- "@firebase/logger": "0.4.0",
116
- "@firebase/util": "1.9.3",
114
+ "@firebase/component": "0.6.4-canary.264909862",
115
+ "@firebase/logger": "0.4.0-canary.264909862",
116
+ "@firebase/util": "1.9.3-canary.264909862",
117
117
  "node-fetch": "2.6.7",
118
118
  "tslib": "^2.1.0"
119
119
  },
120
120
  "license": "Apache-2.0",
121
121
  "devDependencies": {
122
- "@firebase/app": "0.9.6",
122
+ "@firebase/app": "0.9.7-canary.264909862",
123
123
  "@rollup/plugin-json": "4.1.0",
124
124
  "@rollup/plugin-strip": "2.1.0",
125
125
  "chromedriver": "98.0.1",