@jetthai/cuora 1.0.120 → 1.0.121

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.121](https://github.com/jetthai/cuora-module/compare/v1.0.120...v1.0.121) (2022-05-23)
6
+
5
7
  ### [1.0.120](https://github.com/jetthai/cuora-module/compare/v1.0.119...v1.0.120) (2022-05-23)
6
8
 
7
9
  ### [1.0.119](https://github.com/jetthai/cuora-module/compare/v1.0.118...v1.0.119) (2022-05-22)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.0.120",
3
+ "version": "1.0.121",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "scripts": {
@@ -251,14 +251,14 @@ export default function (request) {
251
251
  }),
252
252
  setAccount: assign((context, event) => {
253
253
  if (context.loginData.phone) {
254
- cookies.set(accountPhoneKey, context.loginData.phone, {
254
+ cookies.set(accountPhoneKey, `0${context.loginData.phone}`, {
255
255
  path: '/',
256
- maxAge: 60 * 60 * 24,
256
+ maxAge: 60 * 60 * 24 * 7,
257
257
  })
258
258
  } else if (context.loginData.email) {
259
259
  cookies.set(accountEmailKey, context.loginData.email, {
260
260
  path: '/',
261
- maxAge: 60 * 60 * 24,
261
+ maxAge: 60 * 60 * 24 * 7,
262
262
  })
263
263
  }
264
264
  }),