@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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.318-tg",
3
+ "version": "1.1.318-tg-1",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
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
  }),
@@ -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
  }),
@@ -108,7 +108,6 @@ export default class Request {
108
108
 
109
109
  _checkToken(req) {
110
110
  if (!req.isPublic && !this.getToken()) {
111
- console.error(req)
112
111
  throw { code: 'ERR_A103', url: req.url }
113
112
  }
114
113
  }
@@ -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)