@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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.399-dev-2",
3
+ "version": "1.1.399-dev-4",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
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: context.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
  },
@@ -153,6 +153,8 @@ const supportVersion2List = [
153
153
  'otp-verification-point/verify',
154
154
  'otp-verification-point/acknowledge',
155
155
  'otp-verification-point/reset-otp',
156
+ // 12/02
157
+ 'user-info/get-profile',
156
158
  ]
157
159
 
158
160
  function isValid(value) {