@alore/auth-react-ui 1.1.1-alpha → 1.2.0-alpha.10

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.
Files changed (51) hide show
  1. package/dist/cjs/auth/Login.js +95 -44
  2. package/dist/cjs/auth/Login.js.map +1 -1
  3. package/dist/cjs/auth/Register.js +118 -69
  4. package/dist/cjs/auth/Register.js.map +1 -1
  5. package/dist/cjs/components/Auth.d.ts +10 -3
  6. package/dist/cjs/components/Auth.js +58 -9
  7. package/dist/cjs/components/Auth.js.map +1 -1
  8. package/dist/cjs/components/AuthProvider.d.ts +24 -2
  9. package/dist/cjs/components/AuthProvider.js.map +1 -1
  10. package/dist/cjs/dictionaries/en.json +1 -0
  11. package/dist/cjs/dictionaries/pt.json +1 -0
  12. package/dist/cjs/get-dictionary.d.ts +3 -0
  13. package/dist/cjs/hooks/useAuthService.d.ts +68 -2
  14. package/dist/cjs/hooks/useAuthServiceInstance.d.ts +23 -1
  15. package/dist/cjs/hooks/useDictionary.d.ts +1 -0
  16. package/dist/cjs/index.d.ts +6 -5
  17. package/dist/cjs/index.js +6 -2
  18. package/dist/cjs/index.js.map +1 -1
  19. package/dist/cjs/machine/index.d.ts +46 -2
  20. package/dist/cjs/machine/index.js +180 -58
  21. package/dist/cjs/machine/index.js.map +1 -1
  22. package/dist/cjs/machine/types.d.ts +18 -2
  23. package/dist/mjs/auth/Login.js +76 -30
  24. package/dist/mjs/auth/Login.js.map +1 -1
  25. package/dist/mjs/auth/Register.js +54 -12
  26. package/dist/mjs/auth/Register.js.map +1 -1
  27. package/dist/mjs/components/Auth.d.ts +10 -3
  28. package/dist/mjs/components/Auth.js +58 -9
  29. package/dist/mjs/components/Auth.js.map +1 -1
  30. package/dist/mjs/components/AuthProvider.d.ts +24 -2
  31. package/dist/mjs/components/AuthProvider.js.map +1 -1
  32. package/dist/mjs/dictionaries/en.json +1 -0
  33. package/dist/mjs/dictionaries/pt.json +1 -0
  34. package/dist/mjs/get-dictionary.d.ts +3 -0
  35. package/dist/mjs/hooks/useAuthService.d.ts +68 -2
  36. package/dist/mjs/hooks/useAuthServiceInstance.d.ts +23 -1
  37. package/dist/mjs/hooks/useDictionary.d.ts +1 -0
  38. package/dist/mjs/index.d.ts +6 -5
  39. package/dist/mjs/index.js +3 -2
  40. package/dist/mjs/index.js.map +1 -1
  41. package/dist/mjs/machine/index.d.ts +46 -2
  42. package/dist/mjs/machine/index.js +164 -65
  43. package/dist/mjs/machine/index.js.map +1 -1
  44. package/dist/mjs/machine/types.d.ts +18 -2
  45. package/package.json +18 -15
  46. package/dist/cjs/machine/index.typegen.d.ts +0 -162
  47. package/dist/cjs/machine/index.typegen.js +0 -4
  48. package/dist/cjs/machine/index.typegen.js.map +0 -1
  49. package/dist/mjs/machine/index.typegen.d.ts +0 -162
  50. package/dist/mjs/machine/index.typegen.js +0 -3
  51. package/dist/mjs/machine/index.typegen.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { AuthProviderConfig } from '@alore/auth-react-sdk/dist/types';
1
+ import { AuthProviderConfig } from '@alore/auth-react-sdk';
2
2
  import React from 'react';
3
3
  export declare const AuthContext: React.Context<import("xstate").Interpreter<import("../machine/types").AuthMachineContext, any, {
4
4
  type: "INITIALIZE";
@@ -7,6 +7,17 @@ export declare const AuthContext: React.Context<import("xstate").Interpreter<imp
7
7
  type: "RESET";
8
8
  } | {
9
9
  type: "RESET_CONTEXT";
10
+ } | {
11
+ type: "SET_ERROR";
12
+ error?: string | undefined;
13
+ info?: {
14
+ code?: string | undefined;
15
+ message?: string | undefined;
16
+ email?: string | undefined;
17
+ data?: any;
18
+ } | undefined;
19
+ } | {
20
+ type: "CLEAR_ERROR";
10
21
  } | {
11
22
  type: "REFRESH_ACCESS_TOKEN";
12
23
  newAccessToken: string;
@@ -245,13 +256,24 @@ export declare const AuthContext: React.Context<import("xstate").Interpreter<imp
245
256
  }, {
246
257
  value: any;
247
258
  context: import("../machine/types").AuthMachineContext;
248
- }, import("xstate").MarkAllImplementationsAsProvided<import("xstate").ResolveTypegenMeta<import("../machine/index.typegen").Typegen0, {
259
+ }, import("xstate").MarkAllImplementationsAsProvided<import("xstate").ResolveTypegenMeta<any, {
249
260
  type: "INITIALIZE";
250
261
  forgeId?: string | null | undefined;
251
262
  } | {
252
263
  type: "RESET";
253
264
  } | {
254
265
  type: "RESET_CONTEXT";
266
+ } | {
267
+ type: "SET_ERROR";
268
+ error?: string | undefined;
269
+ info?: {
270
+ code?: string | undefined;
271
+ message?: string | undefined;
272
+ email?: string | undefined;
273
+ data?: any;
274
+ } | undefined;
275
+ } | {
276
+ type: "CLEAR_ERROR";
255
277
  } | {
256
278
  type: "REFRESH_ACCESS_TOKEN";
257
279
  newAccessToken: string;
@@ -1 +1 @@
1
- {"version":3,"file":"AuthProvider.js","sourceRoot":"","sources":["../../../src/components/AuthProvider.tsx"],"names":[],"mappings":";AAAA,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;AAEb,0DAAkD;AAElD,+CAA2E;AAE3E,wCAAyC;AAE5B,QAAA,WAAW,GAAG,IAAA,qBAAa,EAAwC,IAAI,CAAC,CAAC;AAkB/E,MAAM,YAAY,GAAgC,CAAC,EACxD,QAAQ,EACR,YAAY,EACZ,MAAM,GAAG,EAAE,EACX,QAAQ,GACT,EAAE,EAAE;IACH,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,IAAA,gBAAQ,EAAY,IAAI,CAAC,CAAC;IAExE,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,MAAM,SAAS,GAAG,IAAI,0BAAS,CAAC,QAAQ,EAAE,YAAY,EAAE,MAAM,CAAC,CAAC;QAChE,kBAAkB,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IACzC,CAAC,EAAE,CAAC,QAAQ,EAAE,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC;IAErC,MAAM,mBAAmB,GAAG,IAAA,eAAO,EACjC,GAAG,EAAE,CAAC,eAAe,IAAI,IAAA,qBAAW,EAAC,eAAe,EAAE,EAAE,mBAAmB,EAAE,MAAM,EAAE,CAAC,EACtF,CAAC,eAAe,CAAC,CAClB,CAAC;IAEF,OAAO,mBAAmB,KAAK,IAAI,CAAC,CAAC,CAAC,CACpC,8BAAC,mBAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,mBAAmB,IAAG,QAAQ,CAAwB,CACpF,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC;AArBW,QAAA,YAAY,gBAqBvB"}
1
+ {"version":3,"file":"AuthProvider.js","sourceRoot":"","sources":["../../../src/components/AuthProvider.tsx"],"names":[],"mappings":";AAAA,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;AAEb,0DAAsE;AACtE,+CAA2E;AAE3E,wCAAyC;AAE5B,QAAA,WAAW,GAAG,IAAA,qBAAa,EAAwC,IAAI,CAAC,CAAC;AAkB/E,MAAM,YAAY,GAAgC,CAAC,EACxD,QAAQ,EACR,YAAY,EACZ,MAAM,GAAG,EAAE,EACX,QAAQ,GACT,EAAE,EAAE;IACH,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,IAAA,gBAAQ,EAAY,IAAI,CAAC,CAAC;IAExE,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,MAAM,SAAS,GAAG,IAAI,0BAAS,CAAC,QAAQ,EAAE,YAAY,EAAE,MAAM,CAAC,CAAC;QAChE,kBAAkB,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IACzC,CAAC,EAAE,CAAC,QAAQ,EAAE,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC;IAErC,MAAM,mBAAmB,GAAG,IAAA,eAAO,EACjC,GAAG,EAAE,CAAC,eAAe,IAAI,IAAA,qBAAW,EAAC,eAAe,EAAE,EAAE,mBAAmB,EAAE,MAAM,EAAE,CAAC,EACtF,CAAC,eAAe,CAAC,CAClB,CAAC;IAEF,OAAO,mBAAmB,KAAK,IAAI,CAAC,CAAC,CAAC,CACpC,8BAAC,mBAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,mBAAmB,IAAG,QAAQ,CAAwB,CACpF,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC;AArBW,QAAA,YAAY,gBAqBvB"}
@@ -25,6 +25,7 @@
25
25
  "continueMicrosoft": "Microsoft",
26
26
  "signWithPasskey": "Sign in with a passkey",
27
27
  "continueApple": "Continue with Apple",
28
+ "emailDomainNotAllowed": "Email domain not allowed",
28
29
  "layout": {
29
30
  "default": {
30
31
  "title": "Where user experience and DeFi meets.",
@@ -25,6 +25,7 @@
25
25
  "continueMicrosoft": "Microsoft",
26
26
  "signWithPasskey": "Entrar com uma passkey",
27
27
  "continueApple": "Continuar com a Apple",
28
+ "emailDomainNotAllowed": "Domínio de e-mail não permitido",
28
29
  "layout": {
29
30
  "default": {
30
31
  "title": "Onde a experiência do usuário e DeFi se encontram.",
@@ -31,6 +31,7 @@ export declare const dictionaries: {
31
31
  continueMicrosoft: string;
32
32
  signWithPasskey: string;
33
33
  continueApple: string;
34
+ emailDomainNotAllowed: string;
34
35
  layout: {
35
36
  default: {
36
37
  title: string;
@@ -157,6 +158,7 @@ export declare const dictionaries: {
157
158
  continueMicrosoft: string;
158
159
  signWithPasskey: string;
159
160
  continueApple: string;
161
+ emailDomainNotAllowed: string;
160
162
  layout: {
161
163
  default: {
162
164
  title: string;
@@ -284,6 +286,7 @@ export declare const getDictionary: (locale: Locale) => Promise<{
284
286
  continueMicrosoft: string;
285
287
  signWithPasskey: string;
286
288
  continueApple: string;
289
+ emailDomainNotAllowed: string;
287
290
  layout: {
288
291
  default: {
289
292
  title: string;
@@ -5,6 +5,17 @@ declare const useAuthService: () => readonly [import("xstate").State<import("../
5
5
  type: "RESET";
6
6
  } | {
7
7
  type: "RESET_CONTEXT";
8
+ } | {
9
+ type: "SET_ERROR";
10
+ error?: string | undefined;
11
+ info?: {
12
+ code?: string | undefined;
13
+ message?: string | undefined;
14
+ email?: string | undefined;
15
+ data?: any;
16
+ } | undefined;
17
+ } | {
18
+ type: "CLEAR_ERROR";
8
19
  } | {
9
20
  type: "REFRESH_ACCESS_TOKEN";
10
21
  newAccessToken: string;
@@ -243,13 +254,24 @@ declare const useAuthService: () => readonly [import("xstate").State<import("../
243
254
  }, any, {
244
255
  value: any;
245
256
  context: import("../machine/types").AuthMachineContext;
246
- }, import("xstate").MarkAllImplementationsAsProvided<import("xstate").ResolveTypegenMeta<import("../machine/index.typegen").Typegen0, {
257
+ }, import("xstate").MarkAllImplementationsAsProvided<import("xstate").ResolveTypegenMeta<any, {
247
258
  type: "INITIALIZE";
248
259
  forgeId?: string | null | undefined;
249
260
  } | {
250
261
  type: "RESET";
251
262
  } | {
252
263
  type: "RESET_CONTEXT";
264
+ } | {
265
+ type: "SET_ERROR";
266
+ error?: string | undefined;
267
+ info?: {
268
+ code?: string | undefined;
269
+ message?: string | undefined;
270
+ email?: string | undefined;
271
+ data?: any;
272
+ } | undefined;
273
+ } | {
274
+ type: "CLEAR_ERROR";
253
275
  } | {
254
276
  type: "REFRESH_ACCESS_TOKEN";
255
277
  newAccessToken: string;
@@ -492,6 +514,17 @@ declare const useAuthService: () => readonly [import("xstate").State<import("../
492
514
  type: "RESET";
493
515
  } | {
494
516
  type: "RESET_CONTEXT";
517
+ } | {
518
+ type: "SET_ERROR";
519
+ error?: string | undefined;
520
+ info?: {
521
+ code?: string | undefined;
522
+ message?: string | undefined;
523
+ email?: string | undefined;
524
+ data?: any;
525
+ } | undefined;
526
+ } | {
527
+ type: "CLEAR_ERROR";
495
528
  } | {
496
529
  type: "REFRESH_ACCESS_TOKEN";
497
530
  newAccessToken: string;
@@ -734,6 +767,17 @@ declare const useAuthService: () => readonly [import("xstate").State<import("../
734
767
  type: "RESET";
735
768
  } | {
736
769
  type: "RESET_CONTEXT";
770
+ } | {
771
+ type: "SET_ERROR";
772
+ error?: string | undefined;
773
+ info?: {
774
+ code?: string | undefined;
775
+ message?: string | undefined;
776
+ email?: string | undefined;
777
+ data?: any;
778
+ } | undefined;
779
+ } | {
780
+ type: "CLEAR_ERROR";
737
781
  } | {
738
782
  type: "REFRESH_ACCESS_TOKEN";
739
783
  newAccessToken: string;
@@ -976,6 +1020,17 @@ declare const useAuthService: () => readonly [import("xstate").State<import("../
976
1020
  type: "RESET";
977
1021
  } | {
978
1022
  type: "RESET_CONTEXT";
1023
+ } | {
1024
+ type: "SET_ERROR";
1025
+ error?: string | undefined;
1026
+ info?: {
1027
+ code?: string | undefined;
1028
+ message?: string | undefined;
1029
+ email?: string | undefined;
1030
+ data?: any;
1031
+ } | undefined;
1032
+ } | {
1033
+ type: "CLEAR_ERROR";
979
1034
  } | {
980
1035
  type: "REFRESH_ACCESS_TOKEN";
981
1036
  newAccessToken: string;
@@ -1214,13 +1269,24 @@ declare const useAuthService: () => readonly [import("xstate").State<import("../
1214
1269
  }, any, {
1215
1270
  value: any;
1216
1271
  context: import("../machine/types").AuthMachineContext;
1217
- }, import("xstate").MarkAllImplementationsAsProvided<import("xstate").ResolveTypegenMeta<import("../machine/index.typegen").Typegen0, {
1272
+ }, import("xstate").MarkAllImplementationsAsProvided<import("xstate").ResolveTypegenMeta<any, {
1218
1273
  type: "INITIALIZE";
1219
1274
  forgeId?: string | null | undefined;
1220
1275
  } | {
1221
1276
  type: "RESET";
1222
1277
  } | {
1223
1278
  type: "RESET_CONTEXT";
1279
+ } | {
1280
+ type: "SET_ERROR";
1281
+ error?: string | undefined;
1282
+ info?: {
1283
+ code?: string | undefined;
1284
+ message?: string | undefined;
1285
+ email?: string | undefined;
1286
+ data?: any;
1287
+ } | undefined;
1288
+ } | {
1289
+ type: "CLEAR_ERROR";
1224
1290
  } | {
1225
1291
  type: "REFRESH_ACCESS_TOKEN";
1226
1292
  newAccessToken: string;
@@ -5,6 +5,17 @@ declare const useAuthServiceInstance: () => import("xstate").Interpreter<import(
5
5
  type: "RESET";
6
6
  } | {
7
7
  type: "RESET_CONTEXT";
8
+ } | {
9
+ type: "SET_ERROR";
10
+ error?: string | undefined;
11
+ info?: {
12
+ code?: string | undefined;
13
+ message?: string | undefined;
14
+ email?: string | undefined;
15
+ data?: any;
16
+ } | undefined;
17
+ } | {
18
+ type: "CLEAR_ERROR";
8
19
  } | {
9
20
  type: "REFRESH_ACCESS_TOKEN";
10
21
  newAccessToken: string;
@@ -243,13 +254,24 @@ declare const useAuthServiceInstance: () => import("xstate").Interpreter<import(
243
254
  }, {
244
255
  value: any;
245
256
  context: import("../machine/types").AuthMachineContext;
246
- }, import("xstate").MarkAllImplementationsAsProvided<import("xstate").ResolveTypegenMeta<import("../machine/index.typegen").Typegen0, {
257
+ }, import("xstate").MarkAllImplementationsAsProvided<import("xstate").ResolveTypegenMeta<any, {
247
258
  type: "INITIALIZE";
248
259
  forgeId?: string | null | undefined;
249
260
  } | {
250
261
  type: "RESET";
251
262
  } | {
252
263
  type: "RESET_CONTEXT";
264
+ } | {
265
+ type: "SET_ERROR";
266
+ error?: string | undefined;
267
+ info?: {
268
+ code?: string | undefined;
269
+ message?: string | undefined;
270
+ email?: string | undefined;
271
+ data?: any;
272
+ } | undefined;
273
+ } | {
274
+ type: "CLEAR_ERROR";
253
275
  } | {
254
276
  type: "REFRESH_ACCESS_TOKEN";
255
277
  newAccessToken: string;
@@ -26,6 +26,7 @@ declare const useDictionary: (locale: Locale) => {
26
26
  continueMicrosoft: string;
27
27
  signWithPasskey: string;
28
28
  continueApple: string;
29
+ emailDomainNotAllowed: string;
29
30
  layout: {
30
31
  default: {
31
32
  title: string;
@@ -1,9 +1,10 @@
1
- import { AuthProviderConfig } from '@alore/auth-react-sdk/dist/types';
2
- import Auth, { AuthProps } from './components/Auth';
1
+ import { AuthProviderConfig } from '@alore/auth-react-sdk';
2
+ import Login from './auth/Login';
3
+ import Register from './auth/Register';
4
+ import Auth, { AuthError, AuthProps } from './components/Auth';
3
5
  import { AuthProvider } from './components/AuthProvider';
4
6
  import useAuthService from './hooks/useAuthService';
5
7
  import { LocalStorageAuthState } from './machine/LocalStorageAuthState';
6
8
  import { SessionUser } from './machine/types';
7
- export type { AuthProps, SessionUser, AuthProviderConfig, LocalStorageAuthState };
8
- export { useAuthService, AuthProvider };
9
- export default Auth;
9
+ export type { AuthProps, SessionUser, AuthProviderConfig, LocalStorageAuthState, AuthError };
10
+ export { useAuthService, AuthProvider, Auth, Login, Register };
package/dist/cjs/index.js CHANGED
@@ -3,11 +3,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.AuthProvider = exports.useAuthService = void 0;
6
+ exports.Register = exports.Login = exports.Auth = exports.AuthProvider = exports.useAuthService = void 0;
7
+ const Login_1 = __importDefault(require("./auth/Login"));
8
+ exports.Login = Login_1.default;
9
+ const Register_1 = __importDefault(require("./auth/Register"));
10
+ exports.Register = Register_1.default;
7
11
  const Auth_1 = __importDefault(require("./components/Auth"));
12
+ exports.Auth = Auth_1.default;
8
13
  const AuthProvider_1 = require("./components/AuthProvider");
9
14
  Object.defineProperty(exports, "AuthProvider", { enumerable: true, get: function () { return AuthProvider_1.AuthProvider; } });
10
15
  const useAuthService_1 = __importDefault(require("./hooks/useAuthService"));
11
16
  exports.useAuthService = useAuthService_1.default;
12
- exports.default = Auth_1.default;
13
17
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":";;;;;;AAEA,6DAAoD;AACpD,4DAAyD;AAMhC,6FANhB,2BAAY,OAMgB;AALrC,4EAAoD;AAK3C,yBALF,wBAAc,CAKE;AACvB,kBAAe,cAAI,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":";;;;;;AAEA,yDAAiC;AASY,gBATtC,eAAK,CASsC;AARlD,+DAAuC;AAQa,mBAR7C,kBAAQ,CAQ6C;AAP5D,6DAA+D;AAOxB,eAPhC,cAAI,CAOgC;AAN3C,4DAAyD;AAMhC,6FANhB,2BAAY,OAMgB;AALrC,4EAAoD;AAK3C,yBALF,wBAAc,CAKE"}
@@ -6,6 +6,17 @@ export declare const authMachine: import("xstate").StateMachine<AuthMachineConte
6
6
  type: "RESET";
7
7
  } | {
8
8
  type: "RESET_CONTEXT";
9
+ } | {
10
+ type: "SET_ERROR";
11
+ error?: string | undefined;
12
+ info?: {
13
+ code?: string | undefined;
14
+ message?: string | undefined;
15
+ email?: string | undefined;
16
+ data?: any;
17
+ } | undefined;
18
+ } | {
19
+ type: "CLEAR_ERROR";
9
20
  } | {
10
21
  type: "REFRESH_ACCESS_TOKEN";
11
22
  newAccessToken: string;
@@ -244,13 +255,24 @@ export declare const authMachine: import("xstate").StateMachine<AuthMachineConte
244
255
  }, {
245
256
  value: any;
246
257
  context: AuthMachineContext;
247
- }, import("xstate").BaseActionObject, AuthMachineServices, import("xstate").ResolveTypegenMeta<import("./index.typegen").Typegen0, {
258
+ }, import("xstate").BaseActionObject, AuthMachineServices, import("xstate").ResolveTypegenMeta<any, {
248
259
  type: "INITIALIZE";
249
260
  forgeId?: string | null | undefined;
250
261
  } | {
251
262
  type: "RESET";
252
263
  } | {
253
264
  type: "RESET_CONTEXT";
265
+ } | {
266
+ type: "SET_ERROR";
267
+ error?: string | undefined;
268
+ info?: {
269
+ code?: string | undefined;
270
+ message?: string | undefined;
271
+ email?: string | undefined;
272
+ data?: any;
273
+ } | undefined;
274
+ } | {
275
+ type: "CLEAR_ERROR";
254
276
  } | {
255
277
  type: "REFRESH_ACCESS_TOKEN";
256
278
  newAccessToken: string;
@@ -494,6 +516,17 @@ export declare const authService: (services: {}, context: AuthMachineContext) =>
494
516
  type: "RESET";
495
517
  } | {
496
518
  type: "RESET_CONTEXT";
519
+ } | {
520
+ type: "SET_ERROR";
521
+ error?: string | undefined;
522
+ info?: {
523
+ code?: string | undefined;
524
+ message?: string | undefined;
525
+ email?: string | undefined;
526
+ data?: any;
527
+ } | undefined;
528
+ } | {
529
+ type: "CLEAR_ERROR";
497
530
  } | {
498
531
  type: "REFRESH_ACCESS_TOKEN";
499
532
  newAccessToken: string;
@@ -732,13 +765,24 @@ export declare const authService: (services: {}, context: AuthMachineContext) =>
732
765
  }, {
733
766
  value: any;
734
767
  context: AuthMachineContext;
735
- }, import("xstate").MarkAllImplementationsAsProvided<import("xstate").ResolveTypegenMeta<import("./index.typegen").Typegen0, {
768
+ }, import("xstate").MarkAllImplementationsAsProvided<import("xstate").ResolveTypegenMeta<any, {
736
769
  type: "INITIALIZE";
737
770
  forgeId?: string | null | undefined;
738
771
  } | {
739
772
  type: "RESET";
740
773
  } | {
741
774
  type: "RESET_CONTEXT";
775
+ } | {
776
+ type: "SET_ERROR";
777
+ error?: string | undefined;
778
+ info?: {
779
+ code?: string | undefined;
780
+ message?: string | undefined;
781
+ email?: string | undefined;
782
+ data?: any;
783
+ } | undefined;
784
+ } | {
785
+ type: "CLEAR_ERROR";
742
786
  } | {
743
787
  type: "REFRESH_ACCESS_TOKEN";
744
788
  newAccessToken: string;