@jetthai/cuora 1.0.85 → 1.0.86

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.0.86](https://github.com/jetthai/cuora-module/compare/v1.0.85...v1.0.86) (2022-02-07)
6
+
5
7
  ### [1.0.85](https://github.com/jetthai/cuora-module/compare/v1.0.84...v1.0.85) (2022-01-25)
6
8
 
7
9
  ### [1.0.84](https://github.com/jetthai/cuora-module/compare/v1.0.83...v1.0.84) (2022-01-20)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.0.85",
3
+ "version": "1.0.86",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "scripts": {
package/src/api/auth.js CHANGED
@@ -1,8 +1,8 @@
1
1
  export default {
2
- login: ({ username, password, provider, countryCode, phone, email }) => ({
2
+ login: ({ username, password, provider, countryCode, phone, email, dt }) => ({
3
3
  url: 'login',
4
4
  method: 'post',
5
- params: { username, password, provider, countryCode, phone, email },
5
+ params: { username, password, provider, countryCode, phone, email, dt },
6
6
  isPublic: true,
7
7
  }),
8
8
  register: ({ channel = 'official', subchannel = 'pwa', ...rest }) => ({
@@ -276,7 +276,9 @@ export default function (request) {
276
276
  },
277
277
  services: {
278
278
  authenticate: async (context, event) => {
279
- const { token } = await request.send(auth.login(context.loginData))
279
+ const dt = await getDeviceToken(fpToken)
280
+ const data = { ...context.loginData, dt }
281
+ const { token } = await request.send(auth.login(data))
280
282
  return token
281
283
  },
282
284
  logout: async (context, event) => {