@alore/auth-react-ui 1.1.1-alpha → 1.2.0-alpha.5
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 +20 -2
- package/dist/cjs/auth/Login.js.map +1 -1
- package/dist/cjs/auth/Register.js +20 -1
- package/dist/cjs/auth/Register.js.map +1 -1
- package/dist/cjs/components/Auth.d.ts +3 -2
- package/dist/cjs/components/Auth.js +44 -6
- package/dist/cjs/components/Auth.js.map +1 -1
- package/dist/cjs/components/AuthProvider.d.ts +2 -2
- package/dist/cjs/components/AuthProvider.js.map +1 -1
- package/dist/cjs/hooks/useAuthService.d.ts +2 -2
- package/dist/cjs/hooks/useAuthServiceInstance.d.ts +1 -1
- package/dist/cjs/index.d.ts +4 -3
- package/dist/cjs/index.js +6 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/machine/index.d.ts +2 -2
- package/dist/cjs/machine/types.d.ts +1 -1
- package/dist/mjs/auth/Login.js +20 -2
- package/dist/mjs/auth/Login.js.map +1 -1
- package/dist/mjs/auth/Register.js +20 -1
- package/dist/mjs/auth/Register.js.map +1 -1
- package/dist/mjs/components/Auth.d.ts +3 -2
- package/dist/mjs/components/Auth.js +44 -6
- package/dist/mjs/components/Auth.js.map +1 -1
- package/dist/mjs/components/AuthProvider.d.ts +2 -2
- package/dist/mjs/components/AuthProvider.js.map +1 -1
- package/dist/mjs/hooks/useAuthService.d.ts +2 -2
- package/dist/mjs/hooks/useAuthServiceInstance.d.ts +1 -1
- package/dist/mjs/index.d.ts +4 -3
- package/dist/mjs/index.js +3 -2
- package/dist/mjs/index.js.map +1 -1
- package/dist/mjs/machine/index.d.ts +2 -2
- package/dist/mjs/machine/types.d.ts +1 -1
- package/package.json +18 -15
- package/dist/cjs/machine/index.typegen.d.ts +0 -162
- package/dist/cjs/machine/index.typegen.js +0 -4
- package/dist/cjs/machine/index.typegen.js.map +0 -1
- package/dist/mjs/machine/index.typegen.d.ts +0 -162
- package/dist/mjs/machine/index.typegen.js +0 -3
- package/dist/mjs/machine/index.typegen.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alore/auth-react-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0-alpha.5",
|
|
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",
|
|
@@ -8,19 +8,14 @@
|
|
|
8
8
|
"files": [
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
|
-
"scripts": {
|
|
12
|
-
"prepare": "pnpm build",
|
|
13
|
-
"build": "rm -rf dist/* && tsc -p tsconfig-esm.json && tsc -p tsconfig-cjs.json"
|
|
14
|
-
},
|
|
15
11
|
"author": "0xCarbon",
|
|
16
12
|
"license": "LGPL-2.1-only",
|
|
17
13
|
"engines": {
|
|
18
14
|
"node": ">=20.0.0"
|
|
19
15
|
},
|
|
20
16
|
"dependencies": {
|
|
21
|
-
"@
|
|
22
|
-
"@azure/msal-
|
|
23
|
-
"@azure/msal-react": "^3.0.7",
|
|
17
|
+
"@azure/msal-browser": "4.8.0",
|
|
18
|
+
"@azure/msal-react": "3.0.7",
|
|
24
19
|
"@heroicons/react": "2.0.16",
|
|
25
20
|
"@hookform/resolvers": "3.1.0",
|
|
26
21
|
"@react-oauth/google": "0.12.1",
|
|
@@ -30,22 +25,30 @@
|
|
|
30
25
|
"flowbite": "1.6.6",
|
|
31
26
|
"js-cookie": "3.0.5",
|
|
32
27
|
"jwt-decode": "3.1.2",
|
|
33
|
-
"react": "
|
|
34
|
-
"react-hook-form": "^7.54.2",
|
|
28
|
+
"react-hook-form": "7.54.2",
|
|
35
29
|
"tailwind-merge": "2.3.0",
|
|
36
30
|
"xstate": "4.38.2",
|
|
37
|
-
"yup": "1.1.1"
|
|
31
|
+
"yup": "1.1.1",
|
|
32
|
+
"@alore/auth-react-sdk": "1.1.0-alpha.3"
|
|
38
33
|
},
|
|
39
34
|
"devDependencies": {
|
|
40
35
|
"@types/js-cookie": "3.0.6",
|
|
41
|
-
"@types/react": "18.2.
|
|
36
|
+
"@types/react": "^18.2.0",
|
|
37
|
+
"@types/react-dom": "^18.2.0",
|
|
42
38
|
"autoprefixer": "10.4.19",
|
|
43
39
|
"postcss": "8.4.38",
|
|
40
|
+
"react-dom": "^18.2.0",
|
|
44
41
|
"tailwindcss": "3.4.17",
|
|
45
42
|
"typescript": "5.4.5"
|
|
46
43
|
},
|
|
47
44
|
"peerDependencies": {
|
|
48
|
-
"flowbite-react": "0.
|
|
45
|
+
"flowbite-react": "^0.12.0",
|
|
46
|
+
"react": "^18.2.0",
|
|
47
|
+
"react-dom": "^18.2.0"
|
|
49
48
|
},
|
|
50
|
-
"packageManager": "pnpm@8.15.
|
|
51
|
-
|
|
49
|
+
"packageManager": "pnpm@8.15.9",
|
|
50
|
+
"scripts": {
|
|
51
|
+
"build:deps": "pnpm -w -r --filter @alore/auth-react-sdk run build",
|
|
52
|
+
"build": "pnpm run build:deps && rm -rf dist/* && tsc -p tsconfig-esm.json && tsc -p tsconfig-cjs.json"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
export interface Typegen0 {
|
|
2
|
-
'@@xstate/typegen': true;
|
|
3
|
-
internalEvents: {
|
|
4
|
-
"done.invoke.authMachine.active.login.googleLogin:invocation[0]": {
|
|
5
|
-
type: "done.invoke.authMachine.active.login.googleLogin:invocation[0]";
|
|
6
|
-
data: unknown;
|
|
7
|
-
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
8
|
-
};
|
|
9
|
-
"done.invoke.authMachine.active.login.resendingEmailCode:invocation[0]": {
|
|
10
|
-
type: "done.invoke.authMachine.active.login.resendingEmailCode:invocation[0]";
|
|
11
|
-
data: unknown;
|
|
12
|
-
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
13
|
-
};
|
|
14
|
-
"done.invoke.authMachine.active.login.verifying2faCode:invocation[0]": {
|
|
15
|
-
type: "done.invoke.authMachine.active.login.verifying2faCode:invocation[0]";
|
|
16
|
-
data: unknown;
|
|
17
|
-
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
18
|
-
};
|
|
19
|
-
"done.invoke.authMachine.active.login.verifyingCode:invocation[0]": {
|
|
20
|
-
type: "done.invoke.authMachine.active.login.verifyingCode:invocation[0]";
|
|
21
|
-
data: unknown;
|
|
22
|
-
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
23
|
-
};
|
|
24
|
-
"done.invoke.authMachine.active.login.verifyingEmail2fa:invocation[0]": {
|
|
25
|
-
type: "done.invoke.authMachine.active.login.verifyingEmail2fa:invocation[0]";
|
|
26
|
-
data: unknown;
|
|
27
|
-
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
28
|
-
};
|
|
29
|
-
"done.invoke.authMachine.active.login.verifyingGoogleLogin:invocation[0]": {
|
|
30
|
-
type: "done.invoke.authMachine.active.login.verifyingGoogleLogin:invocation[0]";
|
|
31
|
-
data: unknown;
|
|
32
|
-
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
33
|
-
};
|
|
34
|
-
"done.invoke.authMachine.active.login.verifyingHwAuth:invocation[0]": {
|
|
35
|
-
type: "done.invoke.authMachine.active.login.verifyingHwAuth:invocation[0]";
|
|
36
|
-
data: unknown;
|
|
37
|
-
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
38
|
-
};
|
|
39
|
-
"done.invoke.authMachine.active.login.verifyingLogin:invocation[0]": {
|
|
40
|
-
type: "done.invoke.authMachine.active.login.verifyingLogin:invocation[0]";
|
|
41
|
-
data: unknown;
|
|
42
|
-
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
43
|
-
};
|
|
44
|
-
"done.invoke.authMachine.active.login.verifyingRegisterPublicKeyCredential:invocation[0]": {
|
|
45
|
-
type: "done.invoke.authMachine.active.login.verifyingRegisterPublicKeyCredential:invocation[0]";
|
|
46
|
-
data: unknown;
|
|
47
|
-
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
48
|
-
};
|
|
49
|
-
"done.invoke.authMachine.active.register.completingRegistration:invocation[0]": {
|
|
50
|
-
type: "done.invoke.authMachine.active.register.completingRegistration:invocation[0]";
|
|
51
|
-
data: unknown;
|
|
52
|
-
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
53
|
-
};
|
|
54
|
-
"done.invoke.authMachine.active.register.googleLogin:invocation[0]": {
|
|
55
|
-
type: "done.invoke.authMachine.active.register.googleLogin:invocation[0]";
|
|
56
|
-
data: unknown;
|
|
57
|
-
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
58
|
-
};
|
|
59
|
-
"done.invoke.authMachine.active.register.resendingRegistrationEmail:invocation[0]": {
|
|
60
|
-
type: "done.invoke.authMachine.active.register.resendingRegistrationEmail:invocation[0]";
|
|
61
|
-
data: unknown;
|
|
62
|
-
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
63
|
-
};
|
|
64
|
-
"done.invoke.authMachine.active.register.sendingAuthPublicCredential:invocation[0]": {
|
|
65
|
-
type: "done.invoke.authMachine.active.register.sendingAuthPublicCredential:invocation[0]";
|
|
66
|
-
data: unknown;
|
|
67
|
-
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
68
|
-
};
|
|
69
|
-
"done.invoke.authMachine.active.register.verifyingEmail:invocation[0]": {
|
|
70
|
-
type: "done.invoke.authMachine.active.register.verifyingEmail:invocation[0]";
|
|
71
|
-
data: unknown;
|
|
72
|
-
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
73
|
-
};
|
|
74
|
-
"done.invoke.authMachine.active.web3Connector.verifyingEmailEligibility:invocation[0]": {
|
|
75
|
-
type: "done.invoke.authMachine.active.web3Connector.verifyingEmailEligibility:invocation[0]";
|
|
76
|
-
data: unknown;
|
|
77
|
-
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
78
|
-
};
|
|
79
|
-
"xstate.init": {
|
|
80
|
-
type: "xstate.init";
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
invokeSrcNameMap: {
|
|
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
|
-
};
|
|
105
|
-
missingImplementations: {
|
|
106
|
-
actions: "setSessionId" | "updateAccessToken";
|
|
107
|
-
delays: never;
|
|
108
|
-
guards: "isPasskeyEnabled" | "isPasswordAndPasskeyEnabled" | "requireEmailVerification";
|
|
109
|
-
services: never;
|
|
110
|
-
};
|
|
111
|
-
eventsCausingActions: {
|
|
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
|
-
};
|
|
118
|
-
eventsCausingDelays: {};
|
|
119
|
-
eventsCausingGuards: {
|
|
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
|
-
};
|
|
129
|
-
eventsCausingServices: {
|
|
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
|
-
};
|
|
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
|
-
};
|
|
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
|
-
};
|
|
160
|
-
};
|
|
161
|
-
tags: never;
|
|
162
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.typegen.js","sourceRoot":"","sources":["../../../src/machine/index.typegen.ts"],"names":[],"mappings":";AACE,mEAAmE"}
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
export interface Typegen0 {
|
|
2
|
-
'@@xstate/typegen': true;
|
|
3
|
-
internalEvents: {
|
|
4
|
-
"done.invoke.authMachine.active.login.googleLogin:invocation[0]": {
|
|
5
|
-
type: "done.invoke.authMachine.active.login.googleLogin:invocation[0]";
|
|
6
|
-
data: unknown;
|
|
7
|
-
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
8
|
-
};
|
|
9
|
-
"done.invoke.authMachine.active.login.resendingEmailCode:invocation[0]": {
|
|
10
|
-
type: "done.invoke.authMachine.active.login.resendingEmailCode:invocation[0]";
|
|
11
|
-
data: unknown;
|
|
12
|
-
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
13
|
-
};
|
|
14
|
-
"done.invoke.authMachine.active.login.verifying2faCode:invocation[0]": {
|
|
15
|
-
type: "done.invoke.authMachine.active.login.verifying2faCode:invocation[0]";
|
|
16
|
-
data: unknown;
|
|
17
|
-
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
18
|
-
};
|
|
19
|
-
"done.invoke.authMachine.active.login.verifyingCode:invocation[0]": {
|
|
20
|
-
type: "done.invoke.authMachine.active.login.verifyingCode:invocation[0]";
|
|
21
|
-
data: unknown;
|
|
22
|
-
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
23
|
-
};
|
|
24
|
-
"done.invoke.authMachine.active.login.verifyingEmail2fa:invocation[0]": {
|
|
25
|
-
type: "done.invoke.authMachine.active.login.verifyingEmail2fa:invocation[0]";
|
|
26
|
-
data: unknown;
|
|
27
|
-
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
28
|
-
};
|
|
29
|
-
"done.invoke.authMachine.active.login.verifyingGoogleLogin:invocation[0]": {
|
|
30
|
-
type: "done.invoke.authMachine.active.login.verifyingGoogleLogin:invocation[0]";
|
|
31
|
-
data: unknown;
|
|
32
|
-
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
33
|
-
};
|
|
34
|
-
"done.invoke.authMachine.active.login.verifyingHwAuth:invocation[0]": {
|
|
35
|
-
type: "done.invoke.authMachine.active.login.verifyingHwAuth:invocation[0]";
|
|
36
|
-
data: unknown;
|
|
37
|
-
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
38
|
-
};
|
|
39
|
-
"done.invoke.authMachine.active.login.verifyingLogin:invocation[0]": {
|
|
40
|
-
type: "done.invoke.authMachine.active.login.verifyingLogin:invocation[0]";
|
|
41
|
-
data: unknown;
|
|
42
|
-
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
43
|
-
};
|
|
44
|
-
"done.invoke.authMachine.active.login.verifyingRegisterPublicKeyCredential:invocation[0]": {
|
|
45
|
-
type: "done.invoke.authMachine.active.login.verifyingRegisterPublicKeyCredential:invocation[0]";
|
|
46
|
-
data: unknown;
|
|
47
|
-
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
48
|
-
};
|
|
49
|
-
"done.invoke.authMachine.active.register.completingRegistration:invocation[0]": {
|
|
50
|
-
type: "done.invoke.authMachine.active.register.completingRegistration:invocation[0]";
|
|
51
|
-
data: unknown;
|
|
52
|
-
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
53
|
-
};
|
|
54
|
-
"done.invoke.authMachine.active.register.googleLogin:invocation[0]": {
|
|
55
|
-
type: "done.invoke.authMachine.active.register.googleLogin:invocation[0]";
|
|
56
|
-
data: unknown;
|
|
57
|
-
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
58
|
-
};
|
|
59
|
-
"done.invoke.authMachine.active.register.resendingRegistrationEmail:invocation[0]": {
|
|
60
|
-
type: "done.invoke.authMachine.active.register.resendingRegistrationEmail:invocation[0]";
|
|
61
|
-
data: unknown;
|
|
62
|
-
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
63
|
-
};
|
|
64
|
-
"done.invoke.authMachine.active.register.sendingAuthPublicCredential:invocation[0]": {
|
|
65
|
-
type: "done.invoke.authMachine.active.register.sendingAuthPublicCredential:invocation[0]";
|
|
66
|
-
data: unknown;
|
|
67
|
-
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
68
|
-
};
|
|
69
|
-
"done.invoke.authMachine.active.register.verifyingEmail:invocation[0]": {
|
|
70
|
-
type: "done.invoke.authMachine.active.register.verifyingEmail:invocation[0]";
|
|
71
|
-
data: unknown;
|
|
72
|
-
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
73
|
-
};
|
|
74
|
-
"done.invoke.authMachine.active.web3Connector.verifyingEmailEligibility:invocation[0]": {
|
|
75
|
-
type: "done.invoke.authMachine.active.web3Connector.verifyingEmailEligibility:invocation[0]";
|
|
76
|
-
data: unknown;
|
|
77
|
-
__tip: "See the XState TS docs to learn how to strongly type this.";
|
|
78
|
-
};
|
|
79
|
-
"xstate.init": {
|
|
80
|
-
type: "xstate.init";
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
invokeSrcNameMap: {
|
|
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
|
-
};
|
|
105
|
-
missingImplementations: {
|
|
106
|
-
actions: "setSessionId" | "updateAccessToken";
|
|
107
|
-
delays: never;
|
|
108
|
-
guards: "isPasskeyEnabled" | "isPasswordAndPasskeyEnabled" | "requireEmailVerification";
|
|
109
|
-
services: never;
|
|
110
|
-
};
|
|
111
|
-
eventsCausingActions: {
|
|
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
|
-
};
|
|
118
|
-
eventsCausingDelays: {};
|
|
119
|
-
eventsCausingGuards: {
|
|
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
|
-
};
|
|
129
|
-
eventsCausingServices: {
|
|
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
|
-
};
|
|
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
|
-
};
|
|
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
|
-
};
|
|
160
|
-
};
|
|
161
|
-
tags: never;
|
|
162
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.typegen.js","sourceRoot":"","sources":["../../../src/machine/index.typegen.ts"],"names":[],"mappings":"AACE,mEAAmE"}
|