@auth0/auth0-react 2.2.2 → 2.2.3
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/dist/auth0-react.cjs.js +6 -3
- package/dist/auth0-react.cjs.js.map +1 -1
- package/dist/auth0-react.esm.js +6 -4
- package/dist/auth0-react.esm.js.map +1 -1
- package/dist/auth0-react.js +6 -3
- package/dist/auth0-react.js.map +1 -1
- package/dist/auth0-react.min.js +1 -1
- package/dist/auth0-react.min.js.map +1 -1
- package/dist/errors.d.ts +4 -3
- package/dist/errors.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/errors.tsx +3 -5
- package/src/index.tsx +1 -0
package/dist/auth0-react.js
CHANGED
|
@@ -135,13 +135,15 @@
|
|
|
135
135
|
var OAuthError = /** @class */ (function (_super) {
|
|
136
136
|
__extends(OAuthError, _super);
|
|
137
137
|
function OAuthError(error, error_description) {
|
|
138
|
-
var _this = _super.call(this,
|
|
138
|
+
var _this = _super.call(this, error_description || error) || this;
|
|
139
|
+
_this.error = error;
|
|
140
|
+
_this.error_description = error_description;
|
|
139
141
|
// https://github.com/Microsoft/TypeScript-wiki/blob/master/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work
|
|
140
142
|
Object.setPrototypeOf(_this, OAuthError.prototype);
|
|
141
143
|
return _this;
|
|
142
144
|
}
|
|
143
145
|
return OAuthError;
|
|
144
|
-
}(
|
|
146
|
+
}(Error));
|
|
145
147
|
|
|
146
148
|
var CODE_RE = /[?&]code=[^&]+/;
|
|
147
149
|
var STATE_RE = /[?&]state=[^&]+/;
|
|
@@ -224,7 +226,7 @@
|
|
|
224
226
|
deprecateRedirectUri(opts);
|
|
225
227
|
return __assign(__assign({}, opts), { auth0Client: {
|
|
226
228
|
name: 'auth0-react',
|
|
227
|
-
version: '2.2.
|
|
229
|
+
version: '2.2.3',
|
|
228
230
|
} });
|
|
229
231
|
};
|
|
230
232
|
/**
|
|
@@ -550,6 +552,7 @@
|
|
|
550
552
|
exports.Auth0Context = Auth0Context;
|
|
551
553
|
exports.Auth0Provider = Auth0Provider;
|
|
552
554
|
exports.AuthenticationError = u;
|
|
555
|
+
exports.GenericError = d;
|
|
553
556
|
exports.InMemoryCache = x;
|
|
554
557
|
exports.LocalStorageCache = z;
|
|
555
558
|
exports.MfaRequiredError = m;
|