@jetthai/cuora 1.1.308-tg → 1.1.308
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/CHANGELOG.md +0 -2
- package/package.json +1 -1
- package/src/api/auth.js +2 -2
- package/src/machine/auth.js +0 -14
package/CHANGELOG.md
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
-
### [1.1.308-tg](https://github.com/jetthai/cuora-module/compare/v1.1.308...v1.1.308-tg) (2024-09-29)
|
|
6
|
-
|
|
7
5
|
### [1.1.308](https://github.com/jetthai/cuora-module/compare/v1.1.307...v1.1.308) (2024-09-20)
|
|
8
6
|
|
|
9
7
|
### [1.1.307](https://github.com/jetthai/cuora-module/compare/v1.1.306...v1.1.307) (2024-09-16)
|
package/package.json
CHANGED
package/src/api/auth.js
CHANGED
|
@@ -5,10 +5,10 @@ export default {
|
|
|
5
5
|
method: 'post',
|
|
6
6
|
isPublic: true,
|
|
7
7
|
}),
|
|
8
|
-
login: ({ username, password, provider, countryCode, phone, email, dt, reCaptchaToken
|
|
8
|
+
login: ({ username, password, provider, countryCode, phone, email, dt, reCaptchaToken }) => ({
|
|
9
9
|
url: 'login',
|
|
10
10
|
method: 'post',
|
|
11
|
-
params: { username, password, provider, countryCode, phone, email, dt
|
|
11
|
+
params: { username, password, provider, countryCode, phone, email, dt },
|
|
12
12
|
isPublic: true,
|
|
13
13
|
headers: { 'x-access-captcha': reCaptchaToken },
|
|
14
14
|
}),
|
package/src/machine/auth.js
CHANGED
|
@@ -33,7 +33,6 @@ export default function (request) {
|
|
|
33
33
|
email: null,
|
|
34
34
|
username: null,
|
|
35
35
|
password: null,
|
|
36
|
-
additionalUserInfo: null,
|
|
37
36
|
},
|
|
38
37
|
countryAbbr: null,
|
|
39
38
|
userInfo: {},
|
|
@@ -265,10 +264,6 @@ export default function (request) {
|
|
|
265
264
|
LOGIN_APP: {
|
|
266
265
|
target: '.authenticationApp',
|
|
267
266
|
},
|
|
268
|
-
LOGIN_TELEGRAM: {
|
|
269
|
-
target: '.authentication',
|
|
270
|
-
actions: ['setReCaptchaToken', 'setLoginTelegram'],
|
|
271
|
-
},
|
|
272
267
|
SET_PLAY: {
|
|
273
268
|
actions: 'setPlay',
|
|
274
269
|
},
|
|
@@ -351,15 +346,6 @@ export default function (request) {
|
|
|
351
346
|
},
|
|
352
347
|
}
|
|
353
348
|
}),
|
|
354
|
-
setLoginTelegram: assign((context, event) => {
|
|
355
|
-
const { additionalUserInfo } = event.data
|
|
356
|
-
return {
|
|
357
|
-
loginData: {
|
|
358
|
-
provider: 'telegram',
|
|
359
|
-
additionalUserInfo,
|
|
360
|
-
},
|
|
361
|
-
}
|
|
362
|
-
}),
|
|
363
349
|
fetchToken: assign((context, event) => {
|
|
364
350
|
const token = storage.get(tokenKey)
|
|
365
351
|
return {
|