@axinom/mosaic-user-auth 0.5.1-rc.9 → 0.5.2-rc.0

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.
@@ -20,7 +20,7 @@ export interface UserServiceProviderProps {
20
20
  /**
21
21
  * Provides the User Service Client that can be retrieved using the `useUserService` hook
22
22
  */
23
- export declare const UserServiceProvider: React.FC<UserServiceProviderProps>;
23
+ export declare const UserServiceProvider: React.FC<React.PropsWithChildren<UserServiceProviderProps>>;
24
24
  /**
25
25
  * Retrieves the User Service Client
26
26
  */
@@ -1 +1 @@
1
- {"version":3,"file":"UserServiceProvider.d.ts","sourceRoot":"","sources":["../../src/UserServiceProvider/UserServiceProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpE,OAAO,EACL,kBAAkB,EAEnB,MAAM,wCAAwC,CAAC;AAEhD,eAAO,MAAM,kBAAkB,0CAE9B,CAAC;AAEF,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,cAAc,EAAE,cAAc,CAAC;IAE/B;;OAEG;IACH,iBAAiB,EAAE,iBAAiB,CAAC;IAErC;;OAEG;IACH,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;CACzC;AAED;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAiBlE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,QAAO,kBAUjC,CAAC"}
1
+ {"version":3,"file":"UserServiceProvider.d.ts","sourceRoot":"","sources":["../../src/UserServiceProvider/UserServiceProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpE,OAAO,EACL,kBAAkB,EAEnB,MAAM,wCAAwC,CAAC;AAEhD,eAAO,MAAM,kBAAkB,0CAE9B,CAAC;AAEF,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,cAAc,EAAE,cAAc,CAAC;IAE/B;;OAEG;IACH,iBAAiB,EAAE,iBAAiB,CAAC;IAErC;;OAEG;IACH,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;CACzC;AAED;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CACxC,KAAK,CAAC,iBAAiB,CAAC,wBAAwB,CAAC,CAkBlD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,QAAO,kBAUjC,CAAC"}
package/dist/index.es.js CHANGED
@@ -56,7 +56,18 @@ function commonjsRequire () {
56
56
 
57
57
  var enums = createCommonjsModule(function (module, exports) {
58
58
  Object.defineProperty(exports, "__esModule", { value: true });
59
- exports.DecryptNativeCookieResponseCode = exports.IdpProtocol = exports.CheckOtpResponseCode = exports.CompleteUserSignUpResponseCode = exports.UserSignUpResponseCode = exports.ResetPasswordResponseCode = exports.SignInResponseCode = exports.IdpConfigurationResponseCode = exports.SignOutResponseCode = exports.TokenResponseCode = void 0;
59
+ exports.DecryptNativeCookieResponseCode = exports.IdpProtocol = exports.CheckOtpResponseCode = exports.CompleteUserSignUpResponseCode = exports.UserSignUpResponseCode = exports.ResetPasswordResponseCode = exports.SignInResponseCode = exports.IdpConfigurationResponseCode = exports.SignOutResponseCode = exports.TokenResponseCode = exports.UserAuthErrorCode = void 0;
60
+ /**
61
+ * This is the Error Type that the REST middleware will respond when there's an error
62
+ * from the User Service that does not belong to Token/SignOut or IDPConfiguration responses.
63
+ */
64
+ var UserAuthErrorCode;
65
+ (function (UserAuthErrorCode) {
66
+ UserAuthErrorCode["AUTH_FLOW_ERROR"] = "AUTH_FLOW_ERROR";
67
+ UserAuthErrorCode["IDP_CONFIGURATION_ERROR"] = "IDP_CONFIGURATION_ERROR";
68
+ UserAuthErrorCode["BAD_REQUEST"] = "BAD_REQUEST";
69
+ UserAuthErrorCode["INTERNAL_SERVER_ERROR"] = "INTERNAL_SERVER_ERROR";
70
+ })(UserAuthErrorCode = exports.UserAuthErrorCode || (exports.UserAuthErrorCode = {}));
60
71
  /**
61
72
  * Token response code from User Service Auth API
62
73
  */