@alore/auth-react-ui 1.0.0-alpha → 1.0.2-alpha
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/cjs/auth/Login.js +89 -64
- package/dist/cjs/auth/Login.js.map +1 -1
- package/dist/cjs/auth/Register.js +84 -56
- package/dist/cjs/auth/Register.js.map +1 -1
- package/dist/cjs/components/Auth.d.ts +13 -0
- package/dist/cjs/{Auth.js → components/Auth.js} +28 -15
- package/dist/cjs/components/Auth.js.map +1 -0
- package/dist/cjs/components/AuthProvider.d.ts +33 -9
- package/dist/cjs/components/AuthProvider.js +9 -3
- package/dist/cjs/components/AuthProvider.js.map +1 -1
- package/dist/cjs/components/BackButton.js +1 -1
- package/dist/cjs/components/BackButton.js.map +1 -1
- package/dist/cjs/components/CheckboxForm.d.ts +2 -2
- package/dist/cjs/components/CheckboxForm.js +2 -2
- package/dist/cjs/components/CheckboxForm.js.map +1 -1
- package/dist/cjs/components/FormRules/helpers/index.js +1 -1
- package/dist/cjs/components/FormRules/helpers/index.js.map +1 -1
- package/dist/cjs/components/InputErrorHelperText.js +1 -1
- package/dist/cjs/components/InputErrorHelperText.js.map +1 -1
- package/dist/cjs/components/InputForm.d.ts +2 -2
- package/dist/cjs/components/InputForm.js +2 -2
- package/dist/cjs/components/InputForm.js.map +1 -1
- package/dist/cjs/components/InputOTP.d.ts +2 -2
- package/dist/cjs/components/InputOTP.js +2 -2
- package/dist/cjs/components/InputOTP.js.map +1 -1
- package/dist/cjs/components/TermsModal.js +4 -4
- package/dist/cjs/components/TermsModal.js.map +1 -1
- package/dist/cjs/dictionaries/en.json +3 -1
- package/dist/cjs/dictionaries/pt.json +3 -1
- package/dist/cjs/get-dictionary.d.ts +6 -0
- package/dist/cjs/helpers/index.js +1 -1
- package/dist/cjs/helpers/index.js.map +1 -1
- package/dist/cjs/hooks/useAuthService.d.ts +51 -21
- package/dist/cjs/hooks/useAuthServiceInstance.d.ts +16 -6
- package/dist/cjs/hooks/useDictionary.d.ts +2 -0
- package/dist/cjs/index.d.ts +3 -2
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/machine/index.d.ts +33 -13
- package/dist/cjs/machine/index.js +180 -151
- package/dist/cjs/machine/index.js.map +1 -1
- package/dist/cjs/machine/index.typegen.d.ts +15 -17
- package/dist/cjs/machine/types.d.ts +13 -3
- package/dist/cjs/types.d.ts +40 -0
- package/dist/cjs/types.js +3 -0
- package/dist/cjs/types.js.map +1 -0
- package/dist/cjs/utils/index.d.ts +1 -0
- package/dist/cjs/utils/index.js +3 -1
- package/dist/cjs/utils/index.js.map +1 -1
- package/dist/mjs/auth/Login.js +89 -64
- package/dist/mjs/auth/Login.js.map +1 -1
- package/dist/mjs/auth/Register.js +89 -59
- package/dist/mjs/auth/Register.js.map +1 -1
- package/dist/mjs/components/Auth.d.ts +13 -0
- package/dist/mjs/components/Auth.js +59 -0
- package/dist/mjs/components/Auth.js.map +1 -0
- package/dist/mjs/components/AuthProvider.d.ts +33 -9
- package/dist/mjs/components/AuthProvider.js +10 -4
- package/dist/mjs/components/AuthProvider.js.map +1 -1
- package/dist/mjs/components/BackButton.js +1 -1
- package/dist/mjs/components/BackButton.js.map +1 -1
- package/dist/mjs/components/CheckboxForm.d.ts +2 -2
- package/dist/mjs/components/CheckboxForm.js +2 -2
- package/dist/mjs/components/CheckboxForm.js.map +1 -1
- package/dist/mjs/components/FormRules/helpers/index.js +1 -1
- package/dist/mjs/components/FormRules/helpers/index.js.map +1 -1
- package/dist/mjs/components/InputErrorHelperText.js +1 -1
- package/dist/mjs/components/InputErrorHelperText.js.map +1 -1
- package/dist/mjs/components/InputForm.d.ts +2 -2
- package/dist/mjs/components/InputForm.js +2 -2
- package/dist/mjs/components/InputForm.js.map +1 -1
- package/dist/mjs/components/InputOTP.d.ts +2 -2
- package/dist/mjs/components/InputOTP.js +2 -2
- package/dist/mjs/components/InputOTP.js.map +1 -1
- package/dist/mjs/components/TermsModal.js +4 -3
- package/dist/mjs/components/TermsModal.js.map +1 -1
- package/dist/mjs/dictionaries/en.json +3 -1
- package/dist/mjs/dictionaries/pt.json +3 -1
- package/dist/mjs/get-dictionary.d.ts +6 -0
- package/dist/mjs/helpers/index.js +1 -1
- package/dist/mjs/helpers/index.js.map +1 -1
- package/dist/mjs/hooks/useAuthService.d.ts +51 -21
- package/dist/mjs/hooks/useAuthServiceInstance.d.ts +16 -6
- package/dist/mjs/hooks/useDictionary.d.ts +2 -0
- package/dist/mjs/index.d.ts +3 -2
- package/dist/mjs/index.js +1 -1
- package/dist/mjs/index.js.map +1 -1
- package/dist/mjs/machine/index.d.ts +33 -13
- package/dist/mjs/machine/index.js +182 -151
- package/dist/mjs/machine/index.js.map +1 -1
- package/dist/mjs/machine/index.typegen.d.ts +15 -17
- package/dist/mjs/machine/types.d.ts +13 -3
- package/dist/mjs/types.d.ts +40 -0
- package/dist/mjs/types.js +2 -0
- package/dist/mjs/types.js.map +1 -0
- package/dist/mjs/utils/index.d.ts +1 -0
- package/dist/mjs/utils/index.js +2 -0
- package/dist/mjs/utils/index.js.map +1 -1
- package/package.json +10 -6
- package/dist/cjs/Auth.d.ts +0 -18
- package/dist/cjs/Auth.js.map +0 -1
- package/dist/mjs/Auth.d.ts +0 -18
- package/dist/mjs/Auth.js +0 -46
- package/dist/mjs/Auth.js.map +0 -1
|
@@ -17,7 +17,7 @@ declare const useAuthService: () => readonly [import("xstate").State<import("../
|
|
|
17
17
|
} | {
|
|
18
18
|
type: "SELECT_CONNECTOR";
|
|
19
19
|
} | {
|
|
20
|
-
type: "
|
|
20
|
+
type: "SELECT_PASSWORD_METHOD";
|
|
21
21
|
payload: {
|
|
22
22
|
email: string;
|
|
23
23
|
};
|
|
@@ -37,8 +37,8 @@ declare const useAuthService: () => readonly [import("xstate").State<import("../
|
|
|
37
37
|
} | {
|
|
38
38
|
type: "START_PASSKEY_REGISTER";
|
|
39
39
|
payload: {
|
|
40
|
-
device
|
|
41
|
-
email
|
|
40
|
+
device?: string | undefined;
|
|
41
|
+
email?: string | undefined;
|
|
42
42
|
nickname?: string | undefined;
|
|
43
43
|
};
|
|
44
44
|
} | {
|
|
@@ -169,6 +169,11 @@ declare const useAuthService: () => readonly [import("xstate").State<import("../
|
|
|
169
169
|
type: "VERIFY_EMAIL";
|
|
170
170
|
payload: {
|
|
171
171
|
secureCode: string;
|
|
172
|
+
registerUser: {
|
|
173
|
+
email: string;
|
|
174
|
+
nickname: string;
|
|
175
|
+
device: string;
|
|
176
|
+
};
|
|
172
177
|
};
|
|
173
178
|
} | {
|
|
174
179
|
type: "COMPLETE_REGISTRATION";
|
|
@@ -252,7 +257,7 @@ declare const useAuthService: () => readonly [import("xstate").State<import("../
|
|
|
252
257
|
} | {
|
|
253
258
|
type: "SELECT_CONNECTOR";
|
|
254
259
|
} | {
|
|
255
|
-
type: "
|
|
260
|
+
type: "SELECT_PASSWORD_METHOD";
|
|
256
261
|
payload: {
|
|
257
262
|
email: string;
|
|
258
263
|
};
|
|
@@ -272,8 +277,8 @@ declare const useAuthService: () => readonly [import("xstate").State<import("../
|
|
|
272
277
|
} | {
|
|
273
278
|
type: "START_PASSKEY_REGISTER";
|
|
274
279
|
payload: {
|
|
275
|
-
device
|
|
276
|
-
email
|
|
280
|
+
device?: string | undefined;
|
|
281
|
+
email?: string | undefined;
|
|
277
282
|
nickname?: string | undefined;
|
|
278
283
|
};
|
|
279
284
|
} | {
|
|
@@ -404,6 +409,11 @@ declare const useAuthService: () => readonly [import("xstate").State<import("../
|
|
|
404
409
|
type: "VERIFY_EMAIL";
|
|
405
410
|
payload: {
|
|
406
411
|
secureCode: string;
|
|
412
|
+
registerUser: {
|
|
413
|
+
email: string;
|
|
414
|
+
nickname: string;
|
|
415
|
+
device: string;
|
|
416
|
+
};
|
|
407
417
|
};
|
|
408
418
|
} | {
|
|
409
419
|
type: "COMPLETE_REGISTRATION";
|
|
@@ -465,7 +475,7 @@ declare const useAuthService: () => readonly [import("xstate").State<import("../
|
|
|
465
475
|
type: "SIGN_IN_WITH_PASSKEY";
|
|
466
476
|
} | {
|
|
467
477
|
type: "SET_CONDITIONAL_UI_PASSKEY";
|
|
468
|
-
}, import("xstate").BaseActionObject, import("../machine/types").AuthMachineServices>>>, (event: import("xstate").
|
|
478
|
+
}, import("xstate").BaseActionObject, import("../machine/types").AuthMachineServices>>>, (event: import("xstate").SingleOrArray<import("xstate").Event<{
|
|
469
479
|
type: "INITIALIZE";
|
|
470
480
|
forgeId?: string | null | undefined;
|
|
471
481
|
} | {
|
|
@@ -484,7 +494,7 @@ declare const useAuthService: () => readonly [import("xstate").State<import("../
|
|
|
484
494
|
} | {
|
|
485
495
|
type: "SELECT_CONNECTOR";
|
|
486
496
|
} | {
|
|
487
|
-
type: "
|
|
497
|
+
type: "SELECT_PASSWORD_METHOD";
|
|
488
498
|
payload: {
|
|
489
499
|
email: string;
|
|
490
500
|
};
|
|
@@ -504,8 +514,8 @@ declare const useAuthService: () => readonly [import("xstate").State<import("../
|
|
|
504
514
|
} | {
|
|
505
515
|
type: "START_PASSKEY_REGISTER";
|
|
506
516
|
payload: {
|
|
507
|
-
device
|
|
508
|
-
email
|
|
517
|
+
device?: string | undefined;
|
|
518
|
+
email?: string | undefined;
|
|
509
519
|
nickname?: string | undefined;
|
|
510
520
|
};
|
|
511
521
|
} | {
|
|
@@ -636,6 +646,11 @@ declare const useAuthService: () => readonly [import("xstate").State<import("../
|
|
|
636
646
|
type: "VERIFY_EMAIL";
|
|
637
647
|
payload: {
|
|
638
648
|
secureCode: string;
|
|
649
|
+
registerUser: {
|
|
650
|
+
email: string;
|
|
651
|
+
nickname: string;
|
|
652
|
+
device: string;
|
|
653
|
+
};
|
|
639
654
|
};
|
|
640
655
|
} | {
|
|
641
656
|
type: "COMPLETE_REGISTRATION";
|
|
@@ -697,7 +712,7 @@ declare const useAuthService: () => readonly [import("xstate").State<import("../
|
|
|
697
712
|
type: "SIGN_IN_WITH_PASSKEY";
|
|
698
713
|
} | {
|
|
699
714
|
type: "SET_CONDITIONAL_UI_PASSKEY";
|
|
700
|
-
}
|
|
715
|
+
}>> | import("xstate").SCXML.Event<{
|
|
701
716
|
type: "INITIALIZE";
|
|
702
717
|
forgeId?: string | null | undefined;
|
|
703
718
|
} | {
|
|
@@ -716,7 +731,7 @@ declare const useAuthService: () => readonly [import("xstate").State<import("../
|
|
|
716
731
|
} | {
|
|
717
732
|
type: "SELECT_CONNECTOR";
|
|
718
733
|
} | {
|
|
719
|
-
type: "
|
|
734
|
+
type: "SELECT_PASSWORD_METHOD";
|
|
720
735
|
payload: {
|
|
721
736
|
email: string;
|
|
722
737
|
};
|
|
@@ -736,8 +751,8 @@ declare const useAuthService: () => readonly [import("xstate").State<import("../
|
|
|
736
751
|
} | {
|
|
737
752
|
type: "START_PASSKEY_REGISTER";
|
|
738
753
|
payload: {
|
|
739
|
-
device
|
|
740
|
-
email
|
|
754
|
+
device?: string | undefined;
|
|
755
|
+
email?: string | undefined;
|
|
741
756
|
nickname?: string | undefined;
|
|
742
757
|
};
|
|
743
758
|
} | {
|
|
@@ -868,6 +883,11 @@ declare const useAuthService: () => readonly [import("xstate").State<import("../
|
|
|
868
883
|
type: "VERIFY_EMAIL";
|
|
869
884
|
payload: {
|
|
870
885
|
secureCode: string;
|
|
886
|
+
registerUser: {
|
|
887
|
+
email: string;
|
|
888
|
+
nickname: string;
|
|
889
|
+
device: string;
|
|
890
|
+
};
|
|
871
891
|
};
|
|
872
892
|
} | {
|
|
873
893
|
type: "COMPLETE_REGISTRATION";
|
|
@@ -929,7 +949,7 @@ declare const useAuthService: () => readonly [import("xstate").State<import("../
|
|
|
929
949
|
type: "SIGN_IN_WITH_PASSKEY";
|
|
930
950
|
} | {
|
|
931
951
|
type: "SET_CONDITIONAL_UI_PASSKEY";
|
|
932
|
-
}
|
|
952
|
+
}>, payload?: import("xstate").EventData | undefined) => import("xstate").State<import("../machine/types").AuthMachineContext, {
|
|
933
953
|
type: "INITIALIZE";
|
|
934
954
|
forgeId?: string | null | undefined;
|
|
935
955
|
} | {
|
|
@@ -948,7 +968,7 @@ declare const useAuthService: () => readonly [import("xstate").State<import("../
|
|
|
948
968
|
} | {
|
|
949
969
|
type: "SELECT_CONNECTOR";
|
|
950
970
|
} | {
|
|
951
|
-
type: "
|
|
971
|
+
type: "SELECT_PASSWORD_METHOD";
|
|
952
972
|
payload: {
|
|
953
973
|
email: string;
|
|
954
974
|
};
|
|
@@ -968,8 +988,8 @@ declare const useAuthService: () => readonly [import("xstate").State<import("../
|
|
|
968
988
|
} | {
|
|
969
989
|
type: "START_PASSKEY_REGISTER";
|
|
970
990
|
payload: {
|
|
971
|
-
device
|
|
972
|
-
email
|
|
991
|
+
device?: string | undefined;
|
|
992
|
+
email?: string | undefined;
|
|
973
993
|
nickname?: string | undefined;
|
|
974
994
|
};
|
|
975
995
|
} | {
|
|
@@ -1100,6 +1120,11 @@ declare const useAuthService: () => readonly [import("xstate").State<import("../
|
|
|
1100
1120
|
type: "VERIFY_EMAIL";
|
|
1101
1121
|
payload: {
|
|
1102
1122
|
secureCode: string;
|
|
1123
|
+
registerUser: {
|
|
1124
|
+
email: string;
|
|
1125
|
+
nickname: string;
|
|
1126
|
+
device: string;
|
|
1127
|
+
};
|
|
1103
1128
|
};
|
|
1104
1129
|
} | {
|
|
1105
1130
|
type: "COMPLETE_REGISTRATION";
|
|
@@ -1183,7 +1208,7 @@ declare const useAuthService: () => readonly [import("xstate").State<import("../
|
|
|
1183
1208
|
} | {
|
|
1184
1209
|
type: "SELECT_CONNECTOR";
|
|
1185
1210
|
} | {
|
|
1186
|
-
type: "
|
|
1211
|
+
type: "SELECT_PASSWORD_METHOD";
|
|
1187
1212
|
payload: {
|
|
1188
1213
|
email: string;
|
|
1189
1214
|
};
|
|
@@ -1203,8 +1228,8 @@ declare const useAuthService: () => readonly [import("xstate").State<import("../
|
|
|
1203
1228
|
} | {
|
|
1204
1229
|
type: "START_PASSKEY_REGISTER";
|
|
1205
1230
|
payload: {
|
|
1206
|
-
device
|
|
1207
|
-
email
|
|
1231
|
+
device?: string | undefined;
|
|
1232
|
+
email?: string | undefined;
|
|
1208
1233
|
nickname?: string | undefined;
|
|
1209
1234
|
};
|
|
1210
1235
|
} | {
|
|
@@ -1335,6 +1360,11 @@ declare const useAuthService: () => readonly [import("xstate").State<import("../
|
|
|
1335
1360
|
type: "VERIFY_EMAIL";
|
|
1336
1361
|
payload: {
|
|
1337
1362
|
secureCode: string;
|
|
1363
|
+
registerUser: {
|
|
1364
|
+
email: string;
|
|
1365
|
+
nickname: string;
|
|
1366
|
+
device: string;
|
|
1367
|
+
};
|
|
1338
1368
|
};
|
|
1339
1369
|
} | {
|
|
1340
1370
|
type: "COMPLETE_REGISTRATION";
|
|
@@ -17,7 +17,7 @@ declare const useAuthServiceInstance: () => import("xstate").Interpreter<import(
|
|
|
17
17
|
} | {
|
|
18
18
|
type: "SELECT_CONNECTOR";
|
|
19
19
|
} | {
|
|
20
|
-
type: "
|
|
20
|
+
type: "SELECT_PASSWORD_METHOD";
|
|
21
21
|
payload: {
|
|
22
22
|
email: string;
|
|
23
23
|
};
|
|
@@ -37,8 +37,8 @@ declare const useAuthServiceInstance: () => import("xstate").Interpreter<import(
|
|
|
37
37
|
} | {
|
|
38
38
|
type: "START_PASSKEY_REGISTER";
|
|
39
39
|
payload: {
|
|
40
|
-
device
|
|
41
|
-
email
|
|
40
|
+
device?: string | undefined;
|
|
41
|
+
email?: string | undefined;
|
|
42
42
|
nickname?: string | undefined;
|
|
43
43
|
};
|
|
44
44
|
} | {
|
|
@@ -169,6 +169,11 @@ declare const useAuthServiceInstance: () => import("xstate").Interpreter<import(
|
|
|
169
169
|
type: "VERIFY_EMAIL";
|
|
170
170
|
payload: {
|
|
171
171
|
secureCode: string;
|
|
172
|
+
registerUser: {
|
|
173
|
+
email: string;
|
|
174
|
+
nickname: string;
|
|
175
|
+
device: string;
|
|
176
|
+
};
|
|
172
177
|
};
|
|
173
178
|
} | {
|
|
174
179
|
type: "COMPLETE_REGISTRATION";
|
|
@@ -252,7 +257,7 @@ declare const useAuthServiceInstance: () => import("xstate").Interpreter<import(
|
|
|
252
257
|
} | {
|
|
253
258
|
type: "SELECT_CONNECTOR";
|
|
254
259
|
} | {
|
|
255
|
-
type: "
|
|
260
|
+
type: "SELECT_PASSWORD_METHOD";
|
|
256
261
|
payload: {
|
|
257
262
|
email: string;
|
|
258
263
|
};
|
|
@@ -272,8 +277,8 @@ declare const useAuthServiceInstance: () => import("xstate").Interpreter<import(
|
|
|
272
277
|
} | {
|
|
273
278
|
type: "START_PASSKEY_REGISTER";
|
|
274
279
|
payload: {
|
|
275
|
-
device
|
|
276
|
-
email
|
|
280
|
+
device?: string | undefined;
|
|
281
|
+
email?: string | undefined;
|
|
277
282
|
nickname?: string | undefined;
|
|
278
283
|
};
|
|
279
284
|
} | {
|
|
@@ -404,6 +409,11 @@ declare const useAuthServiceInstance: () => import("xstate").Interpreter<import(
|
|
|
404
409
|
type: "VERIFY_EMAIL";
|
|
405
410
|
payload: {
|
|
406
411
|
secureCode: string;
|
|
412
|
+
registerUser: {
|
|
413
|
+
email: string;
|
|
414
|
+
nickname: string;
|
|
415
|
+
device: string;
|
|
416
|
+
};
|
|
407
417
|
};
|
|
408
418
|
} | {
|
|
409
419
|
type: "COMPLETE_REGISTRATION";
|
|
@@ -3,6 +3,7 @@ declare const useDictionary: (locale: Locale) => {
|
|
|
3
3
|
accept: string;
|
|
4
4
|
password: string;
|
|
5
5
|
next: string;
|
|
6
|
+
back: string;
|
|
6
7
|
formValidation: {
|
|
7
8
|
required: string;
|
|
8
9
|
invalidEmail: string;
|
|
@@ -22,6 +23,7 @@ declare const useDictionary: (locale: Locale) => {
|
|
|
22
23
|
continueWith: string;
|
|
23
24
|
selectAnOption: string;
|
|
24
25
|
continueGoogle: string;
|
|
26
|
+
continueMicrosoft: string;
|
|
25
27
|
signWithPasskey: string;
|
|
26
28
|
continueApple: string;
|
|
27
29
|
layout: {
|
package/dist/mjs/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import Auth, { AuthProps } from './Auth';
|
|
1
|
+
import Auth, { AuthProps } from './components/Auth';
|
|
2
2
|
import { AuthProvider } from './components/AuthProvider';
|
|
3
3
|
import useAuthService from './hooks/useAuthService';
|
|
4
4
|
import { SessionUser } from './machine/types';
|
|
5
|
-
|
|
5
|
+
import { AuthProviderConfig } from './types';
|
|
6
|
+
export type { AuthProps, SessionUser, AuthProviderConfig };
|
|
6
7
|
export { useAuthService, AuthProvider };
|
|
7
8
|
export default Auth;
|
package/dist/mjs/index.js
CHANGED
package/dist/mjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,IAAmB,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,IAAmB,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,cAAc,MAAM,wBAAwB,CAAC;AAKpD,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,CAAC;AACxC,eAAe,IAAI,CAAC"}
|
|
@@ -18,7 +18,7 @@ export declare const authMachine: import("xstate").StateMachine<AuthMachineConte
|
|
|
18
18
|
} | {
|
|
19
19
|
type: "SELECT_CONNECTOR";
|
|
20
20
|
} | {
|
|
21
|
-
type: "
|
|
21
|
+
type: "SELECT_PASSWORD_METHOD";
|
|
22
22
|
payload: {
|
|
23
23
|
email: string;
|
|
24
24
|
};
|
|
@@ -38,8 +38,8 @@ export declare const authMachine: import("xstate").StateMachine<AuthMachineConte
|
|
|
38
38
|
} | {
|
|
39
39
|
type: "START_PASSKEY_REGISTER";
|
|
40
40
|
payload: {
|
|
41
|
-
device
|
|
42
|
-
email
|
|
41
|
+
device?: string | undefined;
|
|
42
|
+
email?: string | undefined;
|
|
43
43
|
nickname?: string | undefined;
|
|
44
44
|
};
|
|
45
45
|
} | {
|
|
@@ -170,6 +170,11 @@ export declare const authMachine: import("xstate").StateMachine<AuthMachineConte
|
|
|
170
170
|
type: "VERIFY_EMAIL";
|
|
171
171
|
payload: {
|
|
172
172
|
secureCode: string;
|
|
173
|
+
registerUser: {
|
|
174
|
+
email: string;
|
|
175
|
+
nickname: string;
|
|
176
|
+
device: string;
|
|
177
|
+
};
|
|
173
178
|
};
|
|
174
179
|
} | {
|
|
175
180
|
type: "COMPLETE_REGISTRATION";
|
|
@@ -253,7 +258,7 @@ export declare const authMachine: import("xstate").StateMachine<AuthMachineConte
|
|
|
253
258
|
} | {
|
|
254
259
|
type: "SELECT_CONNECTOR";
|
|
255
260
|
} | {
|
|
256
|
-
type: "
|
|
261
|
+
type: "SELECT_PASSWORD_METHOD";
|
|
257
262
|
payload: {
|
|
258
263
|
email: string;
|
|
259
264
|
};
|
|
@@ -273,8 +278,8 @@ export declare const authMachine: import("xstate").StateMachine<AuthMachineConte
|
|
|
273
278
|
} | {
|
|
274
279
|
type: "START_PASSKEY_REGISTER";
|
|
275
280
|
payload: {
|
|
276
|
-
device
|
|
277
|
-
email
|
|
281
|
+
device?: string | undefined;
|
|
282
|
+
email?: string | undefined;
|
|
278
283
|
nickname?: string | undefined;
|
|
279
284
|
};
|
|
280
285
|
} | {
|
|
@@ -405,6 +410,11 @@ export declare const authMachine: import("xstate").StateMachine<AuthMachineConte
|
|
|
405
410
|
type: "VERIFY_EMAIL";
|
|
406
411
|
payload: {
|
|
407
412
|
secureCode: string;
|
|
413
|
+
registerUser: {
|
|
414
|
+
email: string;
|
|
415
|
+
nickname: string;
|
|
416
|
+
device: string;
|
|
417
|
+
};
|
|
408
418
|
};
|
|
409
419
|
} | {
|
|
410
420
|
type: "COMPLETE_REGISTRATION";
|
|
@@ -467,7 +477,7 @@ export declare const authMachine: import("xstate").StateMachine<AuthMachineConte
|
|
|
467
477
|
} | {
|
|
468
478
|
type: "SET_CONDITIONAL_UI_PASSKEY";
|
|
469
479
|
}, import("xstate").BaseActionObject, AuthMachineServices>>;
|
|
470
|
-
export declare const authService: (services: {}) => import("xstate").Interpreter<AuthMachineContext, any, {
|
|
480
|
+
export declare const authService: (services: {}, context: AuthMachineContext) => import("xstate").Interpreter<AuthMachineContext, any, {
|
|
471
481
|
type: "INITIALIZE";
|
|
472
482
|
forgeId?: string | null | undefined;
|
|
473
483
|
} | {
|
|
@@ -486,7 +496,7 @@ export declare const authService: (services: {}) => import("xstate").Interpreter
|
|
|
486
496
|
} | {
|
|
487
497
|
type: "SELECT_CONNECTOR";
|
|
488
498
|
} | {
|
|
489
|
-
type: "
|
|
499
|
+
type: "SELECT_PASSWORD_METHOD";
|
|
490
500
|
payload: {
|
|
491
501
|
email: string;
|
|
492
502
|
};
|
|
@@ -506,8 +516,8 @@ export declare const authService: (services: {}) => import("xstate").Interpreter
|
|
|
506
516
|
} | {
|
|
507
517
|
type: "START_PASSKEY_REGISTER";
|
|
508
518
|
payload: {
|
|
509
|
-
device
|
|
510
|
-
email
|
|
519
|
+
device?: string | undefined;
|
|
520
|
+
email?: string | undefined;
|
|
511
521
|
nickname?: string | undefined;
|
|
512
522
|
};
|
|
513
523
|
} | {
|
|
@@ -638,6 +648,11 @@ export declare const authService: (services: {}) => import("xstate").Interpreter
|
|
|
638
648
|
type: "VERIFY_EMAIL";
|
|
639
649
|
payload: {
|
|
640
650
|
secureCode: string;
|
|
651
|
+
registerUser: {
|
|
652
|
+
email: string;
|
|
653
|
+
nickname: string;
|
|
654
|
+
device: string;
|
|
655
|
+
};
|
|
641
656
|
};
|
|
642
657
|
} | {
|
|
643
658
|
type: "COMPLETE_REGISTRATION";
|
|
@@ -721,7 +736,7 @@ export declare const authService: (services: {}) => import("xstate").Interpreter
|
|
|
721
736
|
} | {
|
|
722
737
|
type: "SELECT_CONNECTOR";
|
|
723
738
|
} | {
|
|
724
|
-
type: "
|
|
739
|
+
type: "SELECT_PASSWORD_METHOD";
|
|
725
740
|
payload: {
|
|
726
741
|
email: string;
|
|
727
742
|
};
|
|
@@ -741,8 +756,8 @@ export declare const authService: (services: {}) => import("xstate").Interpreter
|
|
|
741
756
|
} | {
|
|
742
757
|
type: "START_PASSKEY_REGISTER";
|
|
743
758
|
payload: {
|
|
744
|
-
device
|
|
745
|
-
email
|
|
759
|
+
device?: string | undefined;
|
|
760
|
+
email?: string | undefined;
|
|
746
761
|
nickname?: string | undefined;
|
|
747
762
|
};
|
|
748
763
|
} | {
|
|
@@ -873,6 +888,11 @@ export declare const authService: (services: {}) => import("xstate").Interpreter
|
|
|
873
888
|
type: "VERIFY_EMAIL";
|
|
874
889
|
payload: {
|
|
875
890
|
secureCode: string;
|
|
891
|
+
registerUser: {
|
|
892
|
+
email: string;
|
|
893
|
+
nickname: string;
|
|
894
|
+
device: string;
|
|
895
|
+
};
|
|
876
896
|
};
|
|
877
897
|
} | {
|
|
878
898
|
type: "COMPLETE_REGISTRATION";
|