@jetthai/cuora 1.1.318-tg → 1.1.318-tg-1
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 +2 -0
- package/package.json +1 -1
- package/src/api/auth.js +2 -2
- package/src/machine/auth.js +2 -2
- package/src/request/request.js +0 -1
- package/src/util/deviceToken.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
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.318-tg-1](https://github.com/jetthai/cuora-module/compare/v1.1.318-tg...v1.1.318-tg-1) (2024-11-26)
|
|
6
|
+
|
|
5
7
|
### [1.1.318-tg](https://github.com/jetthai/cuora-module/compare/v1.1.318...v1.1.318-tg) (2024-11-19)
|
|
6
8
|
|
|
7
9
|
### [1.1.318](https://github.com/jetthai/cuora-module/compare/v1.1.317...v1.1.318) (2024-11-11)
|
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, loginType }) => ({
|
|
8
|
+
login: ({ username, password, provider, countryCode, phone, email, dt, reCaptchaToken, additionalUserInfo, loginType, isSignature }) => ({
|
|
9
9
|
url: 'login',
|
|
10
10
|
method: 'post',
|
|
11
|
-
params: { username, password, provider, countryCode, phone, email, dt, additionalUserInfo, loginType },
|
|
11
|
+
params: { username, password, provider, countryCode, phone, email, dt, additionalUserInfo, loginType, isSignature },
|
|
12
12
|
isPublic: true,
|
|
13
13
|
headers: { 'x-access-captcha': reCaptchaToken },
|
|
14
14
|
}),
|
package/src/machine/auth.js
CHANGED
|
@@ -359,13 +359,13 @@ export default function (request) {
|
|
|
359
359
|
}
|
|
360
360
|
}),
|
|
361
361
|
setLoginTelegram: assign((context, event) => {
|
|
362
|
-
const { loginType, additionalUserInfo } = event.data
|
|
363
|
-
console.log('Machine Auth', event.data)
|
|
362
|
+
const { loginType, additionalUserInfo, isSignature } = event.data
|
|
364
363
|
return {
|
|
365
364
|
loginData: {
|
|
366
365
|
provider: 'telegram',
|
|
367
366
|
loginType,
|
|
368
367
|
additionalUserInfo,
|
|
368
|
+
isSignature,
|
|
369
369
|
},
|
|
370
370
|
}
|
|
371
371
|
}),
|
package/src/request/request.js
CHANGED
package/src/util/deviceToken.js
CHANGED
|
@@ -23,7 +23,6 @@ const getDeviceToken = async ({ fpToken, sentry, hosts, enable = true }) => {
|
|
|
23
23
|
throw new Error('[Device Token] No token from FingerprintJS.')
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
console.log('[Device Token]', `${dt} from ${endpoints}`)
|
|
27
26
|
sentry?.setTag('dt', dt)
|
|
28
27
|
} catch (error) {
|
|
29
28
|
console.error('[Device Token]', `${dt} from ${endpoints}`, error)
|