@firebase/auth 0.18.1 → 0.18.2-canary.5c9ad7e0b
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 +12 -0
- package/dist/auth-public.d.ts +1 -1
- package/dist/auth.d.ts +1 -2
- package/dist/cordova/index.js +2 -2
- package/dist/cordova/internal.js +2 -2
- package/dist/cordova/{popup_redirect-d25c8345.js → popup_redirect-84c74ca6.js} +17 -9
- package/dist/cordova/popup_redirect-84c74ca6.js.map +1 -0
- package/dist/cordova/src/core/credentials/oauth.d.ts +1 -2
- package/dist/esm2017/{index-d81b283a.js → index-1870bc0f.js} +17 -9
- package/dist/esm2017/index-1870bc0f.js.map +1 -0
- package/dist/esm2017/index.js +1 -1
- package/dist/esm2017/internal.js +2 -2
- package/dist/esm2017/src/core/credentials/oauth.d.ts +1 -2
- package/dist/esm5/{index-f7c7b945.js → index-58572547.js} +17 -9
- package/dist/esm5/index-58572547.js.map +1 -0
- package/dist/esm5/index.js +1 -1
- package/dist/esm5/internal.js +2 -2
- package/dist/esm5/src/core/credentials/oauth.d.ts +1 -2
- package/dist/index.webworker.esm5.js +16 -8
- package/dist/index.webworker.esm5.js.map +1 -1
- package/dist/node/{index-7fb95db8.js → index-53f145f0.js} +17 -9
- package/dist/node/index-53f145f0.js.map +1 -0
- package/dist/node/index.js +1 -1
- package/dist/node/internal.js +1 -1
- package/dist/node/src/core/credentials/oauth.d.ts +1 -2
- package/dist/rn/{enum_maps-dfd404fa.js → enum_maps-b8531d74.js} +17 -9
- package/dist/rn/enum_maps-b8531d74.js.map +1 -0
- package/dist/rn/index.js +1 -1
- package/dist/rn/internal.js +1 -1
- package/dist/rn/src/core/credentials/oauth.d.ts +1 -2
- package/dist/src/core/credentials/oauth.d.ts +1 -2
- package/package.json +6 -6
- package/dist/cordova/popup_redirect-d25c8345.js.map +0 -1
- package/dist/esm2017/index-d81b283a.js.map +0 -1
- package/dist/esm5/index-f7c7b945.js.map +0 -1
- package/dist/node/index-7fb95db8.js.map +0 -1
- package/dist/rn/enum_maps-dfd404fa.js.map +0 -1
package/dist/node/index.js
CHANGED
package/dist/node/internal.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var index = require('./index-
|
|
5
|
+
var index = require('./index-53f145f0.js');
|
|
6
6
|
var tslib = require('tslib');
|
|
7
7
|
var util = require('@firebase/util');
|
|
8
8
|
var app = require('@firebase/app');
|
|
@@ -55,8 +55,7 @@ export declare class OAuthCredential extends AuthCredential {
|
|
|
55
55
|
* @readonly
|
|
56
56
|
*/
|
|
57
57
|
secret?: string;
|
|
58
|
-
|
|
59
|
-
nonce?: string;
|
|
58
|
+
private nonce?;
|
|
60
59
|
private pendingToken;
|
|
61
60
|
/** @internal */
|
|
62
61
|
static _fromParams(params: OAuthCredentialParams): OAuthCredential;
|
|
@@ -1702,6 +1702,7 @@ var UserImpl = /** @class */ (function () {
|
|
|
1702
1702
|
this.phoneNumber = opt.phoneNumber || null;
|
|
1703
1703
|
this.photoURL = opt.photoURL || null;
|
|
1704
1704
|
this.isAnonymous = opt.isAnonymous || false;
|
|
1705
|
+
this.tenantId = opt.tenantId || null;
|
|
1705
1706
|
this.metadata = new UserMetadata(opt.createdAt || undefined, opt.lastLoginAt || undefined);
|
|
1706
1707
|
}
|
|
1707
1708
|
UserImpl.prototype.getIdToken = function (forceRefresh) {
|
|
@@ -2960,7 +2961,9 @@ function connectAuthEmulator(auth, url, options) {
|
|
|
2960
2961
|
protocol: protocol.replace(':', ''),
|
|
2961
2962
|
options: Object.freeze({ disableWarnings: disableWarnings })
|
|
2962
2963
|
});
|
|
2963
|
-
|
|
2964
|
+
if (!disableWarnings) {
|
|
2965
|
+
emitEmulatorWarning();
|
|
2966
|
+
}
|
|
2964
2967
|
}
|
|
2965
2968
|
function extractProtocol(url) {
|
|
2966
2969
|
var protocolEnd = url.indexOf(':');
|
|
@@ -2993,7 +2996,7 @@ function parsePort(portStr) {
|
|
|
2993
2996
|
}
|
|
2994
2997
|
return port;
|
|
2995
2998
|
}
|
|
2996
|
-
function emitEmulatorWarning(
|
|
2999
|
+
function emitEmulatorWarning() {
|
|
2997
3000
|
function attachBanner() {
|
|
2998
3001
|
var el = document.createElement('p');
|
|
2999
3002
|
var sty = el.style;
|
|
@@ -3018,8 +3021,7 @@ function emitEmulatorWarning(disableBanner) {
|
|
|
3018
3021
|
' production credentials.');
|
|
3019
3022
|
}
|
|
3020
3023
|
if (typeof window !== 'undefined' &&
|
|
3021
|
-
typeof document !== 'undefined'
|
|
3022
|
-
!disableBanner) {
|
|
3024
|
+
typeof document !== 'undefined') {
|
|
3023
3025
|
if (document.readyState === 'loading') {
|
|
3024
3026
|
window.addEventListener('DOMContentLoaded', attachBanner);
|
|
3025
3027
|
}
|
|
@@ -3475,7 +3477,11 @@ var OAuthCredential = /** @class */ (function (_super) {
|
|
|
3475
3477
|
return null;
|
|
3476
3478
|
}
|
|
3477
3479
|
var cred = new OAuthCredential(providerId, signInMethod);
|
|
3478
|
-
|
|
3480
|
+
cred.idToken = rest.idToken || undefined;
|
|
3481
|
+
cred.accessToken = rest.accessToken || undefined;
|
|
3482
|
+
cred.secret = rest.secret;
|
|
3483
|
+
cred.nonce = rest.nonce;
|
|
3484
|
+
cred.pendingToken = rest.pendingToken || null;
|
|
3479
3485
|
return cred;
|
|
3480
3486
|
};
|
|
3481
3487
|
/** @internal */
|
|
@@ -4084,7 +4090,7 @@ var OAuthProvider = /** @class */ (function (_super) {
|
|
|
4084
4090
|
* or the ID token string.
|
|
4085
4091
|
*/
|
|
4086
4092
|
OAuthProvider.prototype.credential = function (params) {
|
|
4087
|
-
return this._credential(params);
|
|
4093
|
+
return this._credential(tslib.__assign(tslib.__assign({}, params), { nonce: params.rawNonce }));
|
|
4088
4094
|
};
|
|
4089
4095
|
/** An internal credential method that accepts more permissive options */
|
|
4090
4096
|
OAuthProvider.prototype._credential = function (params) {
|
|
@@ -4128,7 +4134,7 @@ var OAuthProvider = /** @class */ (function (_super) {
|
|
|
4128
4134
|
return new OAuthProvider(providerId)._credential({
|
|
4129
4135
|
idToken: oauthIdToken,
|
|
4130
4136
|
accessToken: oauthAccessToken,
|
|
4131
|
-
|
|
4137
|
+
nonce: nonce,
|
|
4132
4138
|
pendingToken: pendingToken
|
|
4133
4139
|
});
|
|
4134
4140
|
}
|
|
@@ -6747,7 +6753,7 @@ function multiFactor(user) {
|
|
|
6747
6753
|
}
|
|
6748
6754
|
|
|
6749
6755
|
var name = "@firebase/auth";
|
|
6750
|
-
var version = "0.18.
|
|
6756
|
+
var version = "0.18.2-canary.5c9ad7e0b";
|
|
6751
6757
|
|
|
6752
6758
|
/**
|
|
6753
6759
|
* @license
|
|
@@ -6906,6 +6912,8 @@ function registerAuth(clientPlatform) {
|
|
|
6906
6912
|
return (function (auth) { return new AuthInterop(auth); })(auth);
|
|
6907
6913
|
}, "PRIVATE" /* PRIVATE */).setInstantiationMode("EXPLICIT" /* EXPLICIT */));
|
|
6908
6914
|
app.registerVersion(name, version, getVersionForPlatform(clientPlatform));
|
|
6915
|
+
// BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
|
|
6916
|
+
app.registerVersion(name, version, 'cjs5');
|
|
6909
6917
|
}
|
|
6910
6918
|
|
|
6911
6919
|
var STORAGE_AVAILABLE_KEY = '__sak';
|
|
@@ -7109,4 +7117,4 @@ exports.updateProfile = updateProfile;
|
|
|
7109
7117
|
exports.useDeviceLanguage = useDeviceLanguage;
|
|
7110
7118
|
exports.verifyBeforeUpdateEmail = verifyBeforeUpdateEmail;
|
|
7111
7119
|
exports.verifyPasswordResetCode = verifyPasswordResetCode;
|
|
7112
|
-
//# sourceMappingURL=enum_maps-
|
|
7120
|
+
//# sourceMappingURL=enum_maps-b8531d74.js.map
|