@jetthai/cuora 1.1.302-dev-2 → 1.1.302-dev-3

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.1.302-dev-3](https://github.com/jetthai/cuora-module/compare/v1.1.302-dev-2...v1.1.302-dev-3) (2024-09-06)
6
+
5
7
  ### [1.1.302-dev-2](https://github.com/jetthai/cuora-module/compare/v1.1.302-dev-1...v1.1.302-dev-2) (2024-09-04)
6
8
 
7
9
  ### [1.1.302-dev-1](https://github.com/jetthai/cuora-module/compare/v1.0.302-dev-1...v1.1.302-dev-1) (2024-09-04)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.302-dev-2",
3
+ "version": "1.1.302-dev-3",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -166,13 +166,25 @@ export default function (request) {
166
166
  invoke: {
167
167
  src: 'checkDeviceToken',
168
168
  onDone: {
169
- target: 'fetching',
169
+ target: 'checkDeviceTokenDone',
170
170
  },
171
171
  onError: {
172
172
  target: 'fetching',
173
173
  },
174
174
  },
175
175
  },
176
+ checkDeviceTokenDone: {
177
+ invoke: {
178
+ src: 'fetchUserInfo',
179
+ onDone: {
180
+ target: 'pending',
181
+ actions: ['setUserInfo', 'extendToken'],
182
+ },
183
+ onError: {
184
+ target: '#auth.leaving',
185
+ },
186
+ },
187
+ },
176
188
  fetching: {
177
189
  invoke: {
178
190
  src: 'fetchUserInfo',