@alore/auth-react-ui 1.0.9-alpha → 1.1.0-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.
|
@@ -1,161 +1,161 @@
|
|
|
1
1
|
export interface Typegen0 {
|
|
2
2
|
'@@xstate/typegen': true;
|
|
3
3
|
internalEvents: {
|
|
4
|
-
|
|
5
|
-
type:
|
|
4
|
+
"done.invoke.authMachine.active.login.googleLogin:invocation[0]": {
|
|
5
|
+
type: "done.invoke.authMachine.active.login.googleLogin:invocation[0]";
|
|
6
6
|
data: unknown;
|
|
7
|
-
__tip:
|
|
7
|
+
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
8
8
|
};
|
|
9
|
-
|
|
10
|
-
type:
|
|
9
|
+
"done.invoke.authMachine.active.login.resendingEmailCode:invocation[0]": {
|
|
10
|
+
type: "done.invoke.authMachine.active.login.resendingEmailCode:invocation[0]";
|
|
11
11
|
data: unknown;
|
|
12
|
-
__tip:
|
|
12
|
+
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
13
13
|
};
|
|
14
|
-
|
|
15
|
-
type:
|
|
14
|
+
"done.invoke.authMachine.active.login.verifying2faCode:invocation[0]": {
|
|
15
|
+
type: "done.invoke.authMachine.active.login.verifying2faCode:invocation[0]";
|
|
16
16
|
data: unknown;
|
|
17
|
-
__tip:
|
|
17
|
+
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
18
18
|
};
|
|
19
|
-
|
|
20
|
-
type:
|
|
19
|
+
"done.invoke.authMachine.active.login.verifyingCode:invocation[0]": {
|
|
20
|
+
type: "done.invoke.authMachine.active.login.verifyingCode:invocation[0]";
|
|
21
21
|
data: unknown;
|
|
22
|
-
__tip:
|
|
22
|
+
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
23
23
|
};
|
|
24
|
-
|
|
25
|
-
type:
|
|
24
|
+
"done.invoke.authMachine.active.login.verifyingEmail2fa:invocation[0]": {
|
|
25
|
+
type: "done.invoke.authMachine.active.login.verifyingEmail2fa:invocation[0]";
|
|
26
26
|
data: unknown;
|
|
27
|
-
__tip:
|
|
27
|
+
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
28
28
|
};
|
|
29
|
-
|
|
30
|
-
type:
|
|
29
|
+
"done.invoke.authMachine.active.login.verifyingGoogleLogin:invocation[0]": {
|
|
30
|
+
type: "done.invoke.authMachine.active.login.verifyingGoogleLogin:invocation[0]";
|
|
31
31
|
data: unknown;
|
|
32
|
-
__tip:
|
|
32
|
+
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
33
33
|
};
|
|
34
|
-
|
|
35
|
-
type:
|
|
34
|
+
"done.invoke.authMachine.active.login.verifyingHwAuth:invocation[0]": {
|
|
35
|
+
type: "done.invoke.authMachine.active.login.verifyingHwAuth:invocation[0]";
|
|
36
36
|
data: unknown;
|
|
37
|
-
__tip:
|
|
37
|
+
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
38
38
|
};
|
|
39
|
-
|
|
40
|
-
type:
|
|
39
|
+
"done.invoke.authMachine.active.login.verifyingLogin:invocation[0]": {
|
|
40
|
+
type: "done.invoke.authMachine.active.login.verifyingLogin:invocation[0]";
|
|
41
41
|
data: unknown;
|
|
42
|
-
__tip:
|
|
42
|
+
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
43
43
|
};
|
|
44
|
-
|
|
45
|
-
type:
|
|
44
|
+
"done.invoke.authMachine.active.login.verifyingRegisterPublicKeyCredential:invocation[0]": {
|
|
45
|
+
type: "done.invoke.authMachine.active.login.verifyingRegisterPublicKeyCredential:invocation[0]";
|
|
46
46
|
data: unknown;
|
|
47
|
-
__tip:
|
|
47
|
+
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
48
48
|
};
|
|
49
|
-
|
|
50
|
-
type:
|
|
49
|
+
"done.invoke.authMachine.active.register.completingRegistration:invocation[0]": {
|
|
50
|
+
type: "done.invoke.authMachine.active.register.completingRegistration:invocation[0]";
|
|
51
51
|
data: unknown;
|
|
52
|
-
__tip:
|
|
52
|
+
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
53
53
|
};
|
|
54
|
-
|
|
55
|
-
type:
|
|
54
|
+
"done.invoke.authMachine.active.register.googleLogin:invocation[0]": {
|
|
55
|
+
type: "done.invoke.authMachine.active.register.googleLogin:invocation[0]";
|
|
56
56
|
data: unknown;
|
|
57
|
-
__tip:
|
|
57
|
+
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
58
58
|
};
|
|
59
|
-
|
|
60
|
-
type:
|
|
59
|
+
"done.invoke.authMachine.active.register.resendingRegistrationEmail:invocation[0]": {
|
|
60
|
+
type: "done.invoke.authMachine.active.register.resendingRegistrationEmail:invocation[0]";
|
|
61
61
|
data: unknown;
|
|
62
|
-
__tip:
|
|
62
|
+
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
63
63
|
};
|
|
64
|
-
|
|
65
|
-
type:
|
|
64
|
+
"done.invoke.authMachine.active.register.sendingAuthPublicCredential:invocation[0]": {
|
|
65
|
+
type: "done.invoke.authMachine.active.register.sendingAuthPublicCredential:invocation[0]";
|
|
66
66
|
data: unknown;
|
|
67
|
-
__tip:
|
|
67
|
+
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
68
68
|
};
|
|
69
|
-
|
|
70
|
-
type:
|
|
69
|
+
"done.invoke.authMachine.active.register.verifyingEmail:invocation[0]": {
|
|
70
|
+
type: "done.invoke.authMachine.active.register.verifyingEmail:invocation[0]";
|
|
71
71
|
data: unknown;
|
|
72
|
-
__tip:
|
|
72
|
+
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
73
73
|
};
|
|
74
|
-
|
|
75
|
-
type:
|
|
74
|
+
"done.invoke.authMachine.active.web3Connector.verifyingEmailEligibility:invocation[0]": {
|
|
75
|
+
type: "done.invoke.authMachine.active.web3Connector.verifyingEmailEligibility:invocation[0]";
|
|
76
76
|
data: unknown;
|
|
77
|
-
__tip:
|
|
77
|
+
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
78
78
|
};
|
|
79
|
-
|
|
80
|
-
type:
|
|
79
|
+
"xstate.init": {
|
|
80
|
+
type: "xstate.init";
|
|
81
81
|
};
|
|
82
82
|
};
|
|
83
83
|
invokeSrcNameMap: {
|
|
84
|
-
authenticateWebauthn:
|
|
85
|
-
completeRegistration:
|
|
86
|
-
confirmPassword:
|
|
87
|
-
fetchForgeData:
|
|
88
|
-
finishPasskeyAuth:
|
|
89
|
-
finishRegisterPasskey:
|
|
90
|
-
googleLogin:
|
|
91
|
-
retrieveSalt:
|
|
92
|
-
sendCode:
|
|
93
|
-
sendConfirmationEmail:
|
|
94
|
-
startPasskeyAuth:
|
|
95
|
-
startRegisterPasskey:
|
|
96
|
-
verify2faCode:
|
|
97
|
-
verifyClaimNftEmail2fa:
|
|
98
|
-
verifyDeviceCode:
|
|
99
|
-
verifyEmail:
|
|
100
|
-
verifyEmail2fa:
|
|
101
|
-
verifyEmailEligibility:
|
|
102
|
-
verifyGoogleLogin:
|
|
103
|
-
verifyLogin:
|
|
84
|
+
"authenticateWebauthn": "done.invoke.authMachine.active.login.verifyingHwAuth:invocation[0]";
|
|
85
|
+
"completeRegistration": "done.invoke.authMachine.active.register.completingRegistration:invocation[0]";
|
|
86
|
+
"confirmPassword": "done.invoke.authMachine.active.forgotPassword.savingPassword:invocation[0]";
|
|
87
|
+
"fetchForgeData": "done.invoke.authMachine.active.login.fetchingForgeData:invocation[0]";
|
|
88
|
+
"finishPasskeyAuth": "done.invoke.authMachine.active.login.verifyingRegisterPublicKeyCredential:invocation[0]" | "done.invoke.authMachine.active.register.sendingAuthPublicCredential:invocation[0]";
|
|
89
|
+
"finishRegisterPasskey": "done.invoke.authMachine.active.register.sendingPublicCredential:invocation[0]";
|
|
90
|
+
"googleLogin": "done.invoke.authMachine.active.login.googleLogin:invocation[0]" | "done.invoke.authMachine.active.register.googleLogin:invocation[0]";
|
|
91
|
+
"retrieveSalt": "done.invoke.authMachine.active.login.retrievingSalt:invocation[0]";
|
|
92
|
+
"sendCode": "done.invoke.authMachine.active.forgotPassword.sendingCode:invocation[0]";
|
|
93
|
+
"sendConfirmationEmail": "done.invoke.authMachine.active.register.resendingRegistrationEmail:invocation[0]" | "done.invoke.authMachine.active.register.sendingEmail:invocation[0]";
|
|
94
|
+
"startPasskeyAuth": "done.invoke.authMachine.active.login.retrievingCredentialRCR:invocation[0]" | "done.invoke.authMachine.active.register.retrievingRCR:invocation[0]";
|
|
95
|
+
"startRegisterPasskey": "done.invoke.authMachine.active.register.retrievingCCR:invocation[0]";
|
|
96
|
+
"verify2faCode": "done.invoke.authMachine.active.login.verifying2faCode:invocation[0]";
|
|
97
|
+
"verifyClaimNftEmail2fa": "done.invoke.authMachine.active.web3Connector.verifyingClaimNftEmail2fa:invocation[0]";
|
|
98
|
+
"verifyDeviceCode": "done.invoke.authMachine.active.login.verifyingCode:invocation[0]";
|
|
99
|
+
"verifyEmail": "done.invoke.authMachine.active.register.verifyingEmail:invocation[0]";
|
|
100
|
+
"verifyEmail2fa": "done.invoke.authMachine.active.login.verifyingEmail2fa:invocation[0]";
|
|
101
|
+
"verifyEmailEligibility": "done.invoke.authMachine.active.web3Connector.verifyingEmailEligibility:invocation[0]";
|
|
102
|
+
"verifyGoogleLogin": "done.invoke.authMachine.active.login.verifyingGoogleLogin:invocation[0]";
|
|
103
|
+
"verifyLogin": "done.invoke.authMachine.active.login.resendingConfirmationEmail:invocation[0]" | "done.invoke.authMachine.active.login.resendingEmailCode:invocation[0]" | "done.invoke.authMachine.active.login.verifyingLogin:invocation[0]";
|
|
104
104
|
};
|
|
105
105
|
missingImplementations: {
|
|
106
|
-
actions:
|
|
106
|
+
actions: "setSessionId" | "updateAccessToken";
|
|
107
107
|
delays: never;
|
|
108
|
-
guards:
|
|
108
|
+
guards: "isPasskeyEnabled" | "isPasswordAndPasskeyEnabled" | "requireEmailVerification";
|
|
109
109
|
services: never;
|
|
110
110
|
};
|
|
111
111
|
eventsCausingActions: {
|
|
112
|
-
clearContext:
|
|
113
|
-
setSessionId:
|
|
114
|
-
setSessionUser:
|
|
115
|
-
setupRegisterUser:
|
|
116
|
-
updateAccessToken:
|
|
112
|
+
"clearContext": "RESET_CONTEXT";
|
|
113
|
+
"setSessionId": "done.invoke.authMachine.active.login.resendingEmailCode:invocation[0]" | "done.invoke.authMachine.active.login.verifyingLogin:invocation[0]" | "done.invoke.authMachine.active.register.resendingRegistrationEmail:invocation[0]" | "done.invoke.authMachine.active.web3Connector.verifyingEmailEligibility:invocation[0]";
|
|
114
|
+
"setSessionUser": "done.invoke.authMachine.active.login.verifying2faCode:invocation[0]" | "done.invoke.authMachine.active.login.verifyingCode:invocation[0]" | "done.invoke.authMachine.active.login.verifyingEmail2fa:invocation[0]" | "done.invoke.authMachine.active.login.verifyingGoogleLogin:invocation[0]" | "done.invoke.authMachine.active.login.verifyingHwAuth:invocation[0]" | "done.invoke.authMachine.active.login.verifyingRegisterPublicKeyCredential:invocation[0]" | "done.invoke.authMachine.active.register.completingRegistration:invocation[0]" | "done.invoke.authMachine.active.register.sendingAuthPublicCredential:invocation[0]";
|
|
115
|
+
"setupRegisterUser": "SETUP_REGISTER_USER";
|
|
116
|
+
"updateAccessToken": "REFRESH_ACCESS_TOKEN";
|
|
117
117
|
};
|
|
118
118
|
eventsCausingDelays: {};
|
|
119
119
|
eventsCausingGuards: {
|
|
120
|
-
forgeClaim:
|
|
121
|
-
hasHardware2FA:
|
|
122
|
-
hasSoftware2FA:
|
|
123
|
-
isNewDevice:
|
|
124
|
-
isNewUser:
|
|
125
|
-
isPasskeyEnabled:
|
|
126
|
-
isPasswordAndPasskeyEnabled:
|
|
127
|
-
requireEmailVerification:
|
|
120
|
+
"forgeClaim": "INITIALIZE";
|
|
121
|
+
"hasHardware2FA": "done.invoke.authMachine.active.login.verifyingLogin:invocation[0]" | "done.invoke.authMachine.active.login.verifyingRegisterPublicKeyCredential:invocation[0]";
|
|
122
|
+
"hasSoftware2FA": "done.invoke.authMachine.active.login.verifyingLogin:invocation[0]" | "done.invoke.authMachine.active.login.verifyingRegisterPublicKeyCredential:invocation[0]";
|
|
123
|
+
"isNewDevice": "done.invoke.authMachine.active.login.verifying2faCode:invocation[0]" | "done.invoke.authMachine.active.login.verifyingHwAuth:invocation[0]" | "done.invoke.authMachine.active.login.verifyingLogin:invocation[0]" | "done.invoke.authMachine.active.login.verifyingRegisterPublicKeyCredential:invocation[0]";
|
|
124
|
+
"isNewUser": "done.invoke.authMachine.active.login.googleLogin:invocation[0]" | "done.invoke.authMachine.active.register.googleLogin:invocation[0]";
|
|
125
|
+
"isPasskeyEnabled": "BACK" | "SELECT_PASSWORD_METHOD" | "SIGN_UP" | "done.invoke.authMachine.active.register.verifyingEmail:invocation[0]";
|
|
126
|
+
"isPasswordAndPasskeyEnabled": "BACK" | "PASSKEY_NOT_SUPPORTED" | "SELECT_PASSWORD_METHOD" | "done.invoke.authMachine.active.register.verifyingEmail:invocation[0]";
|
|
127
|
+
"requireEmailVerification": "SIGN_UP";
|
|
128
128
|
};
|
|
129
129
|
eventsCausingServices: {
|
|
130
|
-
authenticateWebauthn:
|
|
131
|
-
completeRegistration:
|
|
132
|
-
confirmPassword:
|
|
133
|
-
fetchForgeData:
|
|
134
|
-
finishPasskeyAuth:
|
|
135
|
-
finishRegisterPasskey:
|
|
136
|
-
googleLogin:
|
|
137
|
-
retrieveSalt:
|
|
138
|
-
sendCode:
|
|
139
|
-
sendConfirmationEmail:
|
|
140
|
-
startPasskeyAuth:
|
|
141
|
-
startRegisterPasskey:
|
|
142
|
-
verify2faCode:
|
|
143
|
-
verifyClaimNftEmail2fa:
|
|
144
|
-
verifyDeviceCode:
|
|
145
|
-
verifyEmail:
|
|
146
|
-
verifyEmail2fa:
|
|
147
|
-
verifyEmailEligibility:
|
|
148
|
-
verifyGoogleLogin:
|
|
149
|
-
verifyLogin:
|
|
130
|
+
"authenticateWebauthn": "VERIFY_HW_AUTH";
|
|
131
|
+
"completeRegistration": "COMPLETE_REGISTRATION";
|
|
132
|
+
"confirmPassword": "CONFIRM_PASSWORD";
|
|
133
|
+
"fetchForgeData": "INITIALIZE";
|
|
134
|
+
"finishPasskeyAuth": "FINISH_PASSKEY_AUTH" | "FINISH_PASSKEY_LOGIN";
|
|
135
|
+
"finishRegisterPasskey": "FINISH_PASSKEY_REGISTER";
|
|
136
|
+
"googleLogin": "GOOGLE_LOGIN";
|
|
137
|
+
"retrieveSalt": "SELECT_PASSWORD" | "SELECT_PASSWORD_METHOD";
|
|
138
|
+
"sendCode": "SEND_CODE";
|
|
139
|
+
"sendConfirmationEmail": "RESEND_CODE" | "SEND_REGISTRATION_EMAIL";
|
|
140
|
+
"startPasskeyAuth": "SELECT_PASSWORD_METHOD" | "START_PASSKEY_LOGIN";
|
|
141
|
+
"startRegisterPasskey": "SIGN_UP" | "START_PASSKEY_REGISTER" | "done.invoke.authMachine.active.register.verifyingEmail:invocation[0]";
|
|
142
|
+
"verify2faCode": "CONFIRM_SW_CODE";
|
|
143
|
+
"verifyClaimNftEmail2fa": "VERIFY_CLAIM_NFT_EMAIL_2FA";
|
|
144
|
+
"verifyDeviceCode": "CONFIRM_DEVICE_CODE";
|
|
145
|
+
"verifyEmail": "VERIFY_EMAIL";
|
|
146
|
+
"verifyEmail2fa": "VERIFY_EMAIL_2FA";
|
|
147
|
+
"verifyEmailEligibility": "VERIFY_EMAIL_ELIGIBILITY";
|
|
148
|
+
"verifyGoogleLogin": "COMPLETE_GOOGLE_SIGN_IN";
|
|
149
|
+
"verifyLogin": "RESEND_CODE" | "VERIFY_LOGIN";
|
|
150
150
|
};
|
|
151
|
-
matchesStates:
|
|
152
|
-
active?:
|
|
153
|
-
forgotPassword?:
|
|
154
|
-
login?:
|
|
155
|
-
idle?:
|
|
151
|
+
matchesStates: "active" | "active.forgotPassword" | "active.forgotPassword.codeSent" | "active.forgotPassword.idle" | "active.forgotPassword.newPassword" | "active.forgotPassword.passwordSaved" | "active.forgotPassword.savingPassword" | "active.forgotPassword.sendingCode" | "active.login" | "active.login.email2fa" | "active.login.fetchingForgeData" | "active.login.googleLogin" | "active.login.hardware2fa" | "active.login.idle" | "active.login.idle.authScreen" | "active.login.idle.error" | "active.login.idle.localPasskeySign" | "active.login.idle.signWithPasskey" | "active.login.inputPassword" | "active.login.loginMethodSelection" | "active.login.newDevice" | "active.login.resendingConfirmationEmail" | "active.login.resendingEmailCode" | "active.login.retrievingCredentialRCR" | "active.login.retrievingSalt" | "active.login.signingCredentialRCR" | "active.login.software2fa" | "active.login.successfulLogin" | "active.login.verifying2faCode" | "active.login.verifyingCode" | "active.login.verifyingEmail2fa" | "active.login.verifyingGoogleLogin" | "active.login.verifyingHwAuth" | "active.login.verifyingLogin" | "active.login.verifyingRegisterPublicKeyCredential" | "active.register" | "active.register.completingRegistration" | "active.register.createPassword" | "active.register.emailValidation" | "active.register.googleLogin" | "active.register.idle" | "active.register.localCCRSign" | "active.register.localRCRSign" | "active.register.passkeyCreatedButNotAuthenticated" | "active.register.registerMethodSelection" | "active.register.resendingRegistrationEmail" | "active.register.retrievingCCR" | "active.register.retrievingRCR" | "active.register.sendingAuthPublicCredential" | "active.register.sendingEmail" | "active.register.sendingPublicCredential" | "active.register.termsModal" | "active.register.userCreated" | "active.register.verifyingEmail" | "active.register.waitingForRCR" | "active.web3Connector" | "active.web3Connector.connecting" | "active.web3Connector.email2faCode" | "active.web3Connector.emailConfirmed" | "active.web3Connector.emailInput" | "active.web3Connector.idle" | "active.web3Connector.verifyingClaimNftEmail2fa" | "active.web3Connector.verifyingEmailEligibility" | "inactive" | {
|
|
152
|
+
"active"?: "forgotPassword" | "login" | "register" | "web3Connector" | {
|
|
153
|
+
"forgotPassword"?: "codeSent" | "idle" | "newPassword" | "passwordSaved" | "savingPassword" | "sendingCode";
|
|
154
|
+
"login"?: "email2fa" | "fetchingForgeData" | "googleLogin" | "hardware2fa" | "idle" | "inputPassword" | "loginMethodSelection" | "newDevice" | "resendingConfirmationEmail" | "resendingEmailCode" | "retrievingCredentialRCR" | "retrievingSalt" | "signingCredentialRCR" | "software2fa" | "successfulLogin" | "verifying2faCode" | "verifyingCode" | "verifyingEmail2fa" | "verifyingGoogleLogin" | "verifyingHwAuth" | "verifyingLogin" | "verifyingRegisterPublicKeyCredential" | {
|
|
155
|
+
"idle"?: "authScreen" | "error" | "localPasskeySign" | "signWithPasskey";
|
|
156
156
|
};
|
|
157
|
-
register?:
|
|
158
|
-
web3Connector?:
|
|
157
|
+
"register"?: "completingRegistration" | "createPassword" | "emailValidation" | "googleLogin" | "idle" | "localCCRSign" | "localRCRSign" | "passkeyCreatedButNotAuthenticated" | "registerMethodSelection" | "resendingRegistrationEmail" | "retrievingCCR" | "retrievingRCR" | "sendingAuthPublicCredential" | "sendingEmail" | "sendingPublicCredential" | "termsModal" | "userCreated" | "verifyingEmail" | "waitingForRCR";
|
|
158
|
+
"web3Connector"?: "connecting" | "email2faCode" | "emailConfirmed" | "emailInput" | "idle" | "verifyingClaimNftEmail2fa" | "verifyingEmailEligibility";
|
|
159
159
|
};
|
|
160
160
|
};
|
|
161
161
|
tags: never;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.typegen.js","sourceRoot":"","sources":["../../../src/machine/index.typegen.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.typegen.js","sourceRoot":"","sources":["../../../src/machine/index.typegen.ts"],"names":[],"mappings":";AACE,mEAAmE"}
|
|
@@ -1,161 +1,161 @@
|
|
|
1
1
|
export interface Typegen0 {
|
|
2
2
|
'@@xstate/typegen': true;
|
|
3
3
|
internalEvents: {
|
|
4
|
-
|
|
5
|
-
type:
|
|
4
|
+
"done.invoke.authMachine.active.login.googleLogin:invocation[0]": {
|
|
5
|
+
type: "done.invoke.authMachine.active.login.googleLogin:invocation[0]";
|
|
6
6
|
data: unknown;
|
|
7
|
-
__tip:
|
|
7
|
+
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
8
8
|
};
|
|
9
|
-
|
|
10
|
-
type:
|
|
9
|
+
"done.invoke.authMachine.active.login.resendingEmailCode:invocation[0]": {
|
|
10
|
+
type: "done.invoke.authMachine.active.login.resendingEmailCode:invocation[0]";
|
|
11
11
|
data: unknown;
|
|
12
|
-
__tip:
|
|
12
|
+
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
13
13
|
};
|
|
14
|
-
|
|
15
|
-
type:
|
|
14
|
+
"done.invoke.authMachine.active.login.verifying2faCode:invocation[0]": {
|
|
15
|
+
type: "done.invoke.authMachine.active.login.verifying2faCode:invocation[0]";
|
|
16
16
|
data: unknown;
|
|
17
|
-
__tip:
|
|
17
|
+
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
18
18
|
};
|
|
19
|
-
|
|
20
|
-
type:
|
|
19
|
+
"done.invoke.authMachine.active.login.verifyingCode:invocation[0]": {
|
|
20
|
+
type: "done.invoke.authMachine.active.login.verifyingCode:invocation[0]";
|
|
21
21
|
data: unknown;
|
|
22
|
-
__tip:
|
|
22
|
+
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
23
23
|
};
|
|
24
|
-
|
|
25
|
-
type:
|
|
24
|
+
"done.invoke.authMachine.active.login.verifyingEmail2fa:invocation[0]": {
|
|
25
|
+
type: "done.invoke.authMachine.active.login.verifyingEmail2fa:invocation[0]";
|
|
26
26
|
data: unknown;
|
|
27
|
-
__tip:
|
|
27
|
+
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
28
28
|
};
|
|
29
|
-
|
|
30
|
-
type:
|
|
29
|
+
"done.invoke.authMachine.active.login.verifyingGoogleLogin:invocation[0]": {
|
|
30
|
+
type: "done.invoke.authMachine.active.login.verifyingGoogleLogin:invocation[0]";
|
|
31
31
|
data: unknown;
|
|
32
|
-
__tip:
|
|
32
|
+
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
33
33
|
};
|
|
34
|
-
|
|
35
|
-
type:
|
|
34
|
+
"done.invoke.authMachine.active.login.verifyingHwAuth:invocation[0]": {
|
|
35
|
+
type: "done.invoke.authMachine.active.login.verifyingHwAuth:invocation[0]";
|
|
36
36
|
data: unknown;
|
|
37
|
-
__tip:
|
|
37
|
+
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
38
38
|
};
|
|
39
|
-
|
|
40
|
-
type:
|
|
39
|
+
"done.invoke.authMachine.active.login.verifyingLogin:invocation[0]": {
|
|
40
|
+
type: "done.invoke.authMachine.active.login.verifyingLogin:invocation[0]";
|
|
41
41
|
data: unknown;
|
|
42
|
-
__tip:
|
|
42
|
+
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
43
43
|
};
|
|
44
|
-
|
|
45
|
-
type:
|
|
44
|
+
"done.invoke.authMachine.active.login.verifyingRegisterPublicKeyCredential:invocation[0]": {
|
|
45
|
+
type: "done.invoke.authMachine.active.login.verifyingRegisterPublicKeyCredential:invocation[0]";
|
|
46
46
|
data: unknown;
|
|
47
|
-
__tip:
|
|
47
|
+
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
48
48
|
};
|
|
49
|
-
|
|
50
|
-
type:
|
|
49
|
+
"done.invoke.authMachine.active.register.completingRegistration:invocation[0]": {
|
|
50
|
+
type: "done.invoke.authMachine.active.register.completingRegistration:invocation[0]";
|
|
51
51
|
data: unknown;
|
|
52
|
-
__tip:
|
|
52
|
+
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
53
53
|
};
|
|
54
|
-
|
|
55
|
-
type:
|
|
54
|
+
"done.invoke.authMachine.active.register.googleLogin:invocation[0]": {
|
|
55
|
+
type: "done.invoke.authMachine.active.register.googleLogin:invocation[0]";
|
|
56
56
|
data: unknown;
|
|
57
|
-
__tip:
|
|
57
|
+
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
58
58
|
};
|
|
59
|
-
|
|
60
|
-
type:
|
|
59
|
+
"done.invoke.authMachine.active.register.resendingRegistrationEmail:invocation[0]": {
|
|
60
|
+
type: "done.invoke.authMachine.active.register.resendingRegistrationEmail:invocation[0]";
|
|
61
61
|
data: unknown;
|
|
62
|
-
__tip:
|
|
62
|
+
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
63
63
|
};
|
|
64
|
-
|
|
65
|
-
type:
|
|
64
|
+
"done.invoke.authMachine.active.register.sendingAuthPublicCredential:invocation[0]": {
|
|
65
|
+
type: "done.invoke.authMachine.active.register.sendingAuthPublicCredential:invocation[0]";
|
|
66
66
|
data: unknown;
|
|
67
|
-
__tip:
|
|
67
|
+
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
68
68
|
};
|
|
69
|
-
|
|
70
|
-
type:
|
|
69
|
+
"done.invoke.authMachine.active.register.verifyingEmail:invocation[0]": {
|
|
70
|
+
type: "done.invoke.authMachine.active.register.verifyingEmail:invocation[0]";
|
|
71
71
|
data: unknown;
|
|
72
|
-
__tip:
|
|
72
|
+
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
73
73
|
};
|
|
74
|
-
|
|
75
|
-
type:
|
|
74
|
+
"done.invoke.authMachine.active.web3Connector.verifyingEmailEligibility:invocation[0]": {
|
|
75
|
+
type: "done.invoke.authMachine.active.web3Connector.verifyingEmailEligibility:invocation[0]";
|
|
76
76
|
data: unknown;
|
|
77
|
-
__tip:
|
|
77
|
+
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
78
78
|
};
|
|
79
|
-
|
|
80
|
-
type:
|
|
79
|
+
"xstate.init": {
|
|
80
|
+
type: "xstate.init";
|
|
81
81
|
};
|
|
82
82
|
};
|
|
83
83
|
invokeSrcNameMap: {
|
|
84
|
-
authenticateWebauthn:
|
|
85
|
-
completeRegistration:
|
|
86
|
-
confirmPassword:
|
|
87
|
-
fetchForgeData:
|
|
88
|
-
finishPasskeyAuth:
|
|
89
|
-
finishRegisterPasskey:
|
|
90
|
-
googleLogin:
|
|
91
|
-
retrieveSalt:
|
|
92
|
-
sendCode:
|
|
93
|
-
sendConfirmationEmail:
|
|
94
|
-
startPasskeyAuth:
|
|
95
|
-
startRegisterPasskey:
|
|
96
|
-
verify2faCode:
|
|
97
|
-
verifyClaimNftEmail2fa:
|
|
98
|
-
verifyDeviceCode:
|
|
99
|
-
verifyEmail:
|
|
100
|
-
verifyEmail2fa:
|
|
101
|
-
verifyEmailEligibility:
|
|
102
|
-
verifyGoogleLogin:
|
|
103
|
-
verifyLogin:
|
|
84
|
+
"authenticateWebauthn": "done.invoke.authMachine.active.login.verifyingHwAuth:invocation[0]";
|
|
85
|
+
"completeRegistration": "done.invoke.authMachine.active.register.completingRegistration:invocation[0]";
|
|
86
|
+
"confirmPassword": "done.invoke.authMachine.active.forgotPassword.savingPassword:invocation[0]";
|
|
87
|
+
"fetchForgeData": "done.invoke.authMachine.active.login.fetchingForgeData:invocation[0]";
|
|
88
|
+
"finishPasskeyAuth": "done.invoke.authMachine.active.login.verifyingRegisterPublicKeyCredential:invocation[0]" | "done.invoke.authMachine.active.register.sendingAuthPublicCredential:invocation[0]";
|
|
89
|
+
"finishRegisterPasskey": "done.invoke.authMachine.active.register.sendingPublicCredential:invocation[0]";
|
|
90
|
+
"googleLogin": "done.invoke.authMachine.active.login.googleLogin:invocation[0]" | "done.invoke.authMachine.active.register.googleLogin:invocation[0]";
|
|
91
|
+
"retrieveSalt": "done.invoke.authMachine.active.login.retrievingSalt:invocation[0]";
|
|
92
|
+
"sendCode": "done.invoke.authMachine.active.forgotPassword.sendingCode:invocation[0]";
|
|
93
|
+
"sendConfirmationEmail": "done.invoke.authMachine.active.register.resendingRegistrationEmail:invocation[0]" | "done.invoke.authMachine.active.register.sendingEmail:invocation[0]";
|
|
94
|
+
"startPasskeyAuth": "done.invoke.authMachine.active.login.retrievingCredentialRCR:invocation[0]" | "done.invoke.authMachine.active.register.retrievingRCR:invocation[0]";
|
|
95
|
+
"startRegisterPasskey": "done.invoke.authMachine.active.register.retrievingCCR:invocation[0]";
|
|
96
|
+
"verify2faCode": "done.invoke.authMachine.active.login.verifying2faCode:invocation[0]";
|
|
97
|
+
"verifyClaimNftEmail2fa": "done.invoke.authMachine.active.web3Connector.verifyingClaimNftEmail2fa:invocation[0]";
|
|
98
|
+
"verifyDeviceCode": "done.invoke.authMachine.active.login.verifyingCode:invocation[0]";
|
|
99
|
+
"verifyEmail": "done.invoke.authMachine.active.register.verifyingEmail:invocation[0]";
|
|
100
|
+
"verifyEmail2fa": "done.invoke.authMachine.active.login.verifyingEmail2fa:invocation[0]";
|
|
101
|
+
"verifyEmailEligibility": "done.invoke.authMachine.active.web3Connector.verifyingEmailEligibility:invocation[0]";
|
|
102
|
+
"verifyGoogleLogin": "done.invoke.authMachine.active.login.verifyingGoogleLogin:invocation[0]";
|
|
103
|
+
"verifyLogin": "done.invoke.authMachine.active.login.resendingConfirmationEmail:invocation[0]" | "done.invoke.authMachine.active.login.resendingEmailCode:invocation[0]" | "done.invoke.authMachine.active.login.verifyingLogin:invocation[0]";
|
|
104
104
|
};
|
|
105
105
|
missingImplementations: {
|
|
106
|
-
actions:
|
|
106
|
+
actions: "setSessionId" | "updateAccessToken";
|
|
107
107
|
delays: never;
|
|
108
|
-
guards:
|
|
108
|
+
guards: "isPasskeyEnabled" | "isPasswordAndPasskeyEnabled" | "requireEmailVerification";
|
|
109
109
|
services: never;
|
|
110
110
|
};
|
|
111
111
|
eventsCausingActions: {
|
|
112
|
-
clearContext:
|
|
113
|
-
setSessionId:
|
|
114
|
-
setSessionUser:
|
|
115
|
-
setupRegisterUser:
|
|
116
|
-
updateAccessToken:
|
|
112
|
+
"clearContext": "RESET_CONTEXT";
|
|
113
|
+
"setSessionId": "done.invoke.authMachine.active.login.resendingEmailCode:invocation[0]" | "done.invoke.authMachine.active.login.verifyingLogin:invocation[0]" | "done.invoke.authMachine.active.register.resendingRegistrationEmail:invocation[0]" | "done.invoke.authMachine.active.web3Connector.verifyingEmailEligibility:invocation[0]";
|
|
114
|
+
"setSessionUser": "done.invoke.authMachine.active.login.verifying2faCode:invocation[0]" | "done.invoke.authMachine.active.login.verifyingCode:invocation[0]" | "done.invoke.authMachine.active.login.verifyingEmail2fa:invocation[0]" | "done.invoke.authMachine.active.login.verifyingGoogleLogin:invocation[0]" | "done.invoke.authMachine.active.login.verifyingHwAuth:invocation[0]" | "done.invoke.authMachine.active.login.verifyingRegisterPublicKeyCredential:invocation[0]" | "done.invoke.authMachine.active.register.completingRegistration:invocation[0]" | "done.invoke.authMachine.active.register.sendingAuthPublicCredential:invocation[0]";
|
|
115
|
+
"setupRegisterUser": "SETUP_REGISTER_USER";
|
|
116
|
+
"updateAccessToken": "REFRESH_ACCESS_TOKEN";
|
|
117
117
|
};
|
|
118
118
|
eventsCausingDelays: {};
|
|
119
119
|
eventsCausingGuards: {
|
|
120
|
-
forgeClaim:
|
|
121
|
-
hasHardware2FA:
|
|
122
|
-
hasSoftware2FA:
|
|
123
|
-
isNewDevice:
|
|
124
|
-
isNewUser:
|
|
125
|
-
isPasskeyEnabled:
|
|
126
|
-
isPasswordAndPasskeyEnabled:
|
|
127
|
-
requireEmailVerification:
|
|
120
|
+
"forgeClaim": "INITIALIZE";
|
|
121
|
+
"hasHardware2FA": "done.invoke.authMachine.active.login.verifyingLogin:invocation[0]" | "done.invoke.authMachine.active.login.verifyingRegisterPublicKeyCredential:invocation[0]";
|
|
122
|
+
"hasSoftware2FA": "done.invoke.authMachine.active.login.verifyingLogin:invocation[0]" | "done.invoke.authMachine.active.login.verifyingRegisterPublicKeyCredential:invocation[0]";
|
|
123
|
+
"isNewDevice": "done.invoke.authMachine.active.login.verifying2faCode:invocation[0]" | "done.invoke.authMachine.active.login.verifyingHwAuth:invocation[0]" | "done.invoke.authMachine.active.login.verifyingLogin:invocation[0]" | "done.invoke.authMachine.active.login.verifyingRegisterPublicKeyCredential:invocation[0]";
|
|
124
|
+
"isNewUser": "done.invoke.authMachine.active.login.googleLogin:invocation[0]" | "done.invoke.authMachine.active.register.googleLogin:invocation[0]";
|
|
125
|
+
"isPasskeyEnabled": "BACK" | "SELECT_PASSWORD_METHOD" | "SIGN_UP" | "done.invoke.authMachine.active.register.verifyingEmail:invocation[0]";
|
|
126
|
+
"isPasswordAndPasskeyEnabled": "BACK" | "PASSKEY_NOT_SUPPORTED" | "SELECT_PASSWORD_METHOD" | "done.invoke.authMachine.active.register.verifyingEmail:invocation[0]";
|
|
127
|
+
"requireEmailVerification": "SIGN_UP";
|
|
128
128
|
};
|
|
129
129
|
eventsCausingServices: {
|
|
130
|
-
authenticateWebauthn:
|
|
131
|
-
completeRegistration:
|
|
132
|
-
confirmPassword:
|
|
133
|
-
fetchForgeData:
|
|
134
|
-
finishPasskeyAuth:
|
|
135
|
-
finishRegisterPasskey:
|
|
136
|
-
googleLogin:
|
|
137
|
-
retrieveSalt:
|
|
138
|
-
sendCode:
|
|
139
|
-
sendConfirmationEmail:
|
|
140
|
-
startPasskeyAuth:
|
|
141
|
-
startRegisterPasskey:
|
|
142
|
-
verify2faCode:
|
|
143
|
-
verifyClaimNftEmail2fa:
|
|
144
|
-
verifyDeviceCode:
|
|
145
|
-
verifyEmail:
|
|
146
|
-
verifyEmail2fa:
|
|
147
|
-
verifyEmailEligibility:
|
|
148
|
-
verifyGoogleLogin:
|
|
149
|
-
verifyLogin:
|
|
130
|
+
"authenticateWebauthn": "VERIFY_HW_AUTH";
|
|
131
|
+
"completeRegistration": "COMPLETE_REGISTRATION";
|
|
132
|
+
"confirmPassword": "CONFIRM_PASSWORD";
|
|
133
|
+
"fetchForgeData": "INITIALIZE";
|
|
134
|
+
"finishPasskeyAuth": "FINISH_PASSKEY_AUTH" | "FINISH_PASSKEY_LOGIN";
|
|
135
|
+
"finishRegisterPasskey": "FINISH_PASSKEY_REGISTER";
|
|
136
|
+
"googleLogin": "GOOGLE_LOGIN";
|
|
137
|
+
"retrieveSalt": "SELECT_PASSWORD" | "SELECT_PASSWORD_METHOD";
|
|
138
|
+
"sendCode": "SEND_CODE";
|
|
139
|
+
"sendConfirmationEmail": "RESEND_CODE" | "SEND_REGISTRATION_EMAIL";
|
|
140
|
+
"startPasskeyAuth": "SELECT_PASSWORD_METHOD" | "START_PASSKEY_LOGIN";
|
|
141
|
+
"startRegisterPasskey": "SIGN_UP" | "START_PASSKEY_REGISTER" | "done.invoke.authMachine.active.register.verifyingEmail:invocation[0]";
|
|
142
|
+
"verify2faCode": "CONFIRM_SW_CODE";
|
|
143
|
+
"verifyClaimNftEmail2fa": "VERIFY_CLAIM_NFT_EMAIL_2FA";
|
|
144
|
+
"verifyDeviceCode": "CONFIRM_DEVICE_CODE";
|
|
145
|
+
"verifyEmail": "VERIFY_EMAIL";
|
|
146
|
+
"verifyEmail2fa": "VERIFY_EMAIL_2FA";
|
|
147
|
+
"verifyEmailEligibility": "VERIFY_EMAIL_ELIGIBILITY";
|
|
148
|
+
"verifyGoogleLogin": "COMPLETE_GOOGLE_SIGN_IN";
|
|
149
|
+
"verifyLogin": "RESEND_CODE" | "VERIFY_LOGIN";
|
|
150
150
|
};
|
|
151
|
-
matchesStates:
|
|
152
|
-
active?:
|
|
153
|
-
forgotPassword?:
|
|
154
|
-
login?:
|
|
155
|
-
idle?:
|
|
151
|
+
matchesStates: "active" | "active.forgotPassword" | "active.forgotPassword.codeSent" | "active.forgotPassword.idle" | "active.forgotPassword.newPassword" | "active.forgotPassword.passwordSaved" | "active.forgotPassword.savingPassword" | "active.forgotPassword.sendingCode" | "active.login" | "active.login.email2fa" | "active.login.fetchingForgeData" | "active.login.googleLogin" | "active.login.hardware2fa" | "active.login.idle" | "active.login.idle.authScreen" | "active.login.idle.error" | "active.login.idle.localPasskeySign" | "active.login.idle.signWithPasskey" | "active.login.inputPassword" | "active.login.loginMethodSelection" | "active.login.newDevice" | "active.login.resendingConfirmationEmail" | "active.login.resendingEmailCode" | "active.login.retrievingCredentialRCR" | "active.login.retrievingSalt" | "active.login.signingCredentialRCR" | "active.login.software2fa" | "active.login.successfulLogin" | "active.login.verifying2faCode" | "active.login.verifyingCode" | "active.login.verifyingEmail2fa" | "active.login.verifyingGoogleLogin" | "active.login.verifyingHwAuth" | "active.login.verifyingLogin" | "active.login.verifyingRegisterPublicKeyCredential" | "active.register" | "active.register.completingRegistration" | "active.register.createPassword" | "active.register.emailValidation" | "active.register.googleLogin" | "active.register.idle" | "active.register.localCCRSign" | "active.register.localRCRSign" | "active.register.passkeyCreatedButNotAuthenticated" | "active.register.registerMethodSelection" | "active.register.resendingRegistrationEmail" | "active.register.retrievingCCR" | "active.register.retrievingRCR" | "active.register.sendingAuthPublicCredential" | "active.register.sendingEmail" | "active.register.sendingPublicCredential" | "active.register.termsModal" | "active.register.userCreated" | "active.register.verifyingEmail" | "active.register.waitingForRCR" | "active.web3Connector" | "active.web3Connector.connecting" | "active.web3Connector.email2faCode" | "active.web3Connector.emailConfirmed" | "active.web3Connector.emailInput" | "active.web3Connector.idle" | "active.web3Connector.verifyingClaimNftEmail2fa" | "active.web3Connector.verifyingEmailEligibility" | "inactive" | {
|
|
152
|
+
"active"?: "forgotPassword" | "login" | "register" | "web3Connector" | {
|
|
153
|
+
"forgotPassword"?: "codeSent" | "idle" | "newPassword" | "passwordSaved" | "savingPassword" | "sendingCode";
|
|
154
|
+
"login"?: "email2fa" | "fetchingForgeData" | "googleLogin" | "hardware2fa" | "idle" | "inputPassword" | "loginMethodSelection" | "newDevice" | "resendingConfirmationEmail" | "resendingEmailCode" | "retrievingCredentialRCR" | "retrievingSalt" | "signingCredentialRCR" | "software2fa" | "successfulLogin" | "verifying2faCode" | "verifyingCode" | "verifyingEmail2fa" | "verifyingGoogleLogin" | "verifyingHwAuth" | "verifyingLogin" | "verifyingRegisterPublicKeyCredential" | {
|
|
155
|
+
"idle"?: "authScreen" | "error" | "localPasskeySign" | "signWithPasskey";
|
|
156
156
|
};
|
|
157
|
-
register?:
|
|
158
|
-
web3Connector?:
|
|
157
|
+
"register"?: "completingRegistration" | "createPassword" | "emailValidation" | "googleLogin" | "idle" | "localCCRSign" | "localRCRSign" | "passkeyCreatedButNotAuthenticated" | "registerMethodSelection" | "resendingRegistrationEmail" | "retrievingCCR" | "retrievingRCR" | "sendingAuthPublicCredential" | "sendingEmail" | "sendingPublicCredential" | "termsModal" | "userCreated" | "verifyingEmail" | "waitingForRCR";
|
|
158
|
+
"web3Connector"?: "connecting" | "email2faCode" | "emailConfirmed" | "emailInput" | "idle" | "verifyingClaimNftEmail2fa" | "verifyingEmailEligibility";
|
|
159
159
|
};
|
|
160
160
|
};
|
|
161
161
|
tags: never;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.typegen.js","sourceRoot":"","sources":["../../../src/machine/index.typegen.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.typegen.js","sourceRoot":"","sources":["../../../src/machine/index.typegen.ts"],"names":[],"mappings":"AACE,mEAAmE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alore/auth-react-ui",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0-alpha",
|
|
4
4
|
"repository": "https://github.com/0xCarbon/alore-js",
|
|
5
5
|
"description": "React Auth UI component for Alore",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"node": ">=20.0.0"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@alore/auth-react-sdk": "1.0.
|
|
21
|
+
"@alore/auth-react-sdk": "1.0.7-alpha",
|
|
22
22
|
"@azure/msal-browser": "^4.8.0",
|
|
23
23
|
"@azure/msal-react": "^3.0.7",
|
|
24
24
|
"@heroicons/react": "2.0.16",
|