@firebase/auth 0.21.6 → 0.22.0-20230331192943
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.
- package/CHANGELOG.md +10 -0
- package/README.md +5 -0
- package/dist/auth-public.d.ts +2 -3
- package/dist/auth.d.ts +3 -12
- package/dist/browser-cjs/{index-39443020.js → index-ee64a34b.js} +5 -3
- package/dist/browser-cjs/index-ee64a34b.js.map +1 -0
- package/dist/browser-cjs/index.js +1 -1
- package/dist/browser-cjs/internal.js +1 -1
- package/dist/browser-cjs/src/core/errors.d.ts +1 -0
- package/dist/browser-cjs/src/core/index.d.ts +1 -0
- package/dist/browser-cjs/src/mfa/assertions/totp.d.ts +2 -2
- package/dist/cordova/index.js +2 -2
- package/dist/cordova/internal.js +2 -2
- package/dist/cordova/internal.js.map +1 -1
- package/dist/cordova/{popup_redirect-8b388294.js → popup_redirect-da0044cc.js} +5 -3
- package/dist/cordova/popup_redirect-da0044cc.js.map +1 -0
- package/dist/cordova/src/core/errors.d.ts +1 -0
- package/dist/cordova/src/core/index.d.ts +1 -0
- package/dist/cordova/src/mfa/assertions/totp.d.ts +2 -2
- package/dist/esm2017/{index-2d01563f.js → index-7d50fc6f.js} +5 -3
- package/dist/esm2017/index-7d50fc6f.js.map +1 -0
- package/dist/esm2017/index.js +1 -1
- package/dist/esm2017/internal.js +2 -2
- package/dist/esm2017/src/core/errors.d.ts +1 -0
- package/dist/esm2017/src/core/index.d.ts +1 -0
- package/dist/esm2017/src/mfa/assertions/totp.d.ts +2 -2
- package/dist/esm5/{index-44fc929c.js → index-586a29d5.js} +5 -3
- package/dist/esm5/index-586a29d5.js.map +1 -0
- package/dist/esm5/index.js +1 -1
- package/dist/esm5/internal.js +2 -2
- package/dist/esm5/src/core/errors.d.ts +1 -0
- package/dist/esm5/src/core/index.d.ts +1 -0
- package/dist/esm5/src/mfa/assertions/totp.d.ts +2 -2
- package/dist/index.webworker.esm5.js +4 -2
- package/dist/index.webworker.esm5.js.map +1 -1
- package/dist/node/index.js +1 -1
- package/dist/node/internal.js +1 -1
- package/dist/node/src/core/errors.d.ts +1 -0
- package/dist/node/src/core/index.d.ts +1 -0
- package/dist/node/src/mfa/assertions/totp.d.ts +2 -2
- package/dist/node/{totp-5e73d8e7.js → totp-65063346.js} +5 -3
- package/dist/node/totp-65063346.js.map +1 -0
- package/dist/node-esm/index.js +1 -1
- package/dist/node-esm/internal.js +2 -2
- package/dist/node-esm/src/core/errors.d.ts +1 -0
- package/dist/node-esm/src/core/index.d.ts +1 -0
- package/dist/node-esm/src/mfa/assertions/totp.d.ts +2 -2
- package/dist/node-esm/{totp-7b645f19.js → totp-b266f224.js} +5 -3
- package/dist/node-esm/totp-b266f224.js.map +1 -0
- package/dist/rn/index.js +1 -1
- package/dist/rn/internal.js +1 -1
- package/dist/rn/internal.js.map +1 -1
- package/dist/rn/{phone-ec210006.js → phone-6a31e5ad.js} +5 -3
- package/dist/rn/phone-6a31e5ad.js.map +1 -0
- package/dist/rn/src/core/errors.d.ts +1 -0
- package/dist/rn/src/core/index.d.ts +1 -0
- package/dist/rn/src/mfa/assertions/totp.d.ts +2 -2
- package/dist/src/core/errors.d.ts +1 -0
- package/dist/src/core/index.d.ts +1 -0
- package/dist/src/mfa/assertions/totp.d.ts +2 -2
- package/package.json +1 -1
- package/dist/browser-cjs/index-39443020.js.map +0 -1
- package/dist/cordova/popup_redirect-8b388294.js.map +0 -1
- package/dist/esm2017/index-2d01563f.js.map +0 -1
- package/dist/esm5/index-44fc929c.js.map +0 -1
- package/dist/node/totp-5e73d8e7.js.map +0 -1
- package/dist/node-esm/totp-7b645f19.js.map +0 -1
- 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
|
|
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:
|
|
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",
|
package/dist/src/core/index.d.ts
CHANGED
|
@@ -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
|
|
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:
|
|
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.
|
|
3
|
+
"version": "0.22.0-20230331192943",
|
|
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",
|