@jetthai/cuora 1.1.399-dev-2 → 1.1.399-dev-4
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/user.js +1 -0
- package/src/machine/auth_otp_v3.js +5 -4
- package/src/request/request.js +2 -0
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.399-dev-4](https://github.com/jetthai/cuora-module/compare/v1.1.399-dev-3...v1.1.399-dev-4) (2025-12-02)
|
|
6
|
+
|
|
7
|
+
### [1.1.399-dev-3](https://github.com/jetthai/cuora-module/compare/v1.1.399-dev-2...v1.1.399-dev-3) (2025-11-28)
|
|
8
|
+
|
|
5
9
|
### [1.1.399-dev-2](https://github.com/jetthai/cuora-module/compare/v1.1.399-dev-1...v1.1.399-dev-2) (2025-11-24)
|
|
6
10
|
|
|
7
11
|
### [1.1.399-dev-1](https://github.com/jetthai/cuora-module/compare/v1.1.399...v1.1.399-dev-1) (2025-11-21)
|
package/package.json
CHANGED
package/src/api/user.js
CHANGED
|
@@ -65,4 +65,5 @@ export default {
|
|
|
65
65
|
otpReset: ({ requestId, target }) => ({ url: '/otpsso/reset', method: 'post', params: { requestId, target }, isPublic: true }),
|
|
66
66
|
getUserPhotoList: () => ({ url: 'getAllAvatar', method: 'get' }),
|
|
67
67
|
updateUserPhoto: (data) => ({ url: 'updateUserAvatar', method: 'post', params: data }),
|
|
68
|
+
getUserProfile: () => ({ url: 'user-info/get-profile', method: 'get' }),
|
|
68
69
|
}
|
|
@@ -243,12 +243,13 @@ export default function (request) {
|
|
|
243
243
|
return await request.send(user.getUserInfo())
|
|
244
244
|
},
|
|
245
245
|
verify: async (context, event) => {
|
|
246
|
+
const provider = context.strategy
|
|
246
247
|
return await request.send(
|
|
247
248
|
otp.verification({
|
|
248
|
-
strategy:
|
|
249
|
-
email: event.data.email,
|
|
250
|
-
countryCode: event.data.country_code,
|
|
251
|
-
phone: event.data.tel,
|
|
249
|
+
strategy: provider,
|
|
250
|
+
email: provider === 'email' ? event.data.email : undefined,
|
|
251
|
+
countryCode: provider === 'phone' ? event.data.country_code : undefined,
|
|
252
|
+
phone: provider === 'phone' ? event.data.tel : undefined,
|
|
252
253
|
})
|
|
253
254
|
)
|
|
254
255
|
},
|
package/src/request/request.js
CHANGED