@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.esm.js
CHANGED
|
@@ -131,13 +131,15 @@ var Auth0Context = createContext(initialContext);
|
|
|
131
131
|
var OAuthError = /** @class */ (function (_super) {
|
|
132
132
|
__extends(OAuthError, _super);
|
|
133
133
|
function OAuthError(error, error_description) {
|
|
134
|
-
var _this = _super.call(this,
|
|
134
|
+
var _this = _super.call(this, error_description || error) || this;
|
|
135
|
+
_this.error = error;
|
|
136
|
+
_this.error_description = error_description;
|
|
135
137
|
// https://github.com/Microsoft/TypeScript-wiki/blob/master/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work
|
|
136
138
|
Object.setPrototypeOf(_this, OAuthError.prototype);
|
|
137
139
|
return _this;
|
|
138
140
|
}
|
|
139
141
|
return OAuthError;
|
|
140
|
-
}(
|
|
142
|
+
}(Error));
|
|
141
143
|
|
|
142
144
|
var CODE_RE = /[?&]code=[^&]+/;
|
|
143
145
|
var STATE_RE = /[?&]state=[^&]+/;
|
|
@@ -220,7 +222,7 @@ var toAuth0ClientOptions = function (opts) {
|
|
|
220
222
|
deprecateRedirectUri(opts);
|
|
221
223
|
return __assign(__assign({}, opts), { auth0Client: {
|
|
222
224
|
name: 'auth0-react',
|
|
223
|
-
version: '2.2.
|
|
225
|
+
version: '2.2.3',
|
|
224
226
|
} });
|
|
225
227
|
};
|
|
226
228
|
/**
|
|
@@ -543,5 +545,5 @@ var withAuthenticationRequired = function (Component, options) {
|
|
|
543
545
|
};
|
|
544
546
|
};
|
|
545
547
|
|
|
546
|
-
export { Auth0Context, Auth0Provider, u as AuthenticationError, x as InMemoryCache, z as LocalStorageCache, m as MfaRequiredError, f as MissingRefreshTokenError, OAuthError, p as PopupCancelledError, h as PopupTimeoutError, l as TimeoutError, ie as User, initialContext, useAuth0, withAuth0, withAuthenticationRequired };
|
|
548
|
+
export { Auth0Context, Auth0Provider, u as AuthenticationError, d as GenericError, x as InMemoryCache, z as LocalStorageCache, m as MfaRequiredError, f as MissingRefreshTokenError, OAuthError, p as PopupCancelledError, h as PopupTimeoutError, l as TimeoutError, ie as User, initialContext, useAuth0, withAuth0, withAuthenticationRequired };
|
|
547
549
|
//# sourceMappingURL=auth0-react.esm.js.map
|