@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 +2 -0
- package/package.json +1 -1
- package/src/api/auth.js +2 -2
- package/src/machine/auth.js +3 -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.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
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 }) => ({
|
package/src/machine/auth.js
CHANGED
|
@@ -276,7 +276,9 @@ export default function (request) {
|
|
|
276
276
|
},
|
|
277
277
|
services: {
|
|
278
278
|
authenticate: async (context, event) => {
|
|
279
|
-
const
|
|
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) => {
|