@jetthai/cuora 1.1.314-tg-1 → 1.1.314-tg-3
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 +4 -0
- package/package.json +1 -1
- package/src/api/auth.js +2 -2
- package/src/machine/auth.js +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
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.314-tg-3](https://github.com/jetthai/cuora-module/compare/v1.1.314-tg-2...v1.1.314-tg-3) (2024-10-31)
|
|
6
|
+
|
|
7
|
+
### [1.1.314-tg-2](https://github.com/jetthai/cuora-module/compare/v1.1.314-tg-1...v1.1.314-tg-2) (2024-10-31)
|
|
8
|
+
|
|
5
9
|
### [1.1.314-tg-1](https://github.com/jetthai/cuora-module/compare/v1.1.314-tg...v1.1.314-tg-1) (2024-10-31)
|
|
6
10
|
|
|
7
11
|
### [1.1.314-tg](https://github.com/jetthai/cuora-module/compare/v1.1.314...v1.1.314-tg) (2024-10-31)
|
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, additionalUserInfo }) => ({
|
|
8
|
+
login: ({ username, password, provider, countryCode, phone, email, dt, reCaptchaToken, additionalUserInfo, loginType }) => ({
|
|
9
9
|
url: 'login',
|
|
10
10
|
method: 'post',
|
|
11
|
-
params: { username, password, provider, countryCode, phone, email, dt, additionalUserInfo },
|
|
11
|
+
params: { username, password, provider, countryCode, phone, email, dt, additionalUserInfo, loginType },
|
|
12
12
|
isPublic: true,
|
|
13
13
|
headers: { 'x-access-captcha': reCaptchaToken },
|
|
14
14
|
}),
|
package/src/machine/auth.js
CHANGED
|
@@ -274,7 +274,7 @@ export default function (request) {
|
|
|
274
274
|
},
|
|
275
275
|
LOGIN_TELEGRAM: {
|
|
276
276
|
target: '.authentication',
|
|
277
|
-
actions:
|
|
277
|
+
actions: 'setLoginTelegram',
|
|
278
278
|
},
|
|
279
279
|
SET_PLAY: {
|
|
280
280
|
actions: 'setPlay',
|
|
@@ -360,6 +360,7 @@ export default function (request) {
|
|
|
360
360
|
}),
|
|
361
361
|
setLoginTelegram: assign((context, event) => {
|
|
362
362
|
const { loginType, additionalUserInfo } = event.data
|
|
363
|
+
console.log('Machine Auth', event.data)
|
|
363
364
|
return {
|
|
364
365
|
loginData: {
|
|
365
366
|
provider: 'telegram',
|