wirejs-deploy-amplify-basic 0.0.31 → 0.0.32

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.
@@ -161,7 +161,7 @@ export class AuthenticationService extends AuthenticationServiceBase {
161
161
  return {
162
162
  state: 'unauthenticated',
163
163
  user: undefined,
164
- actions: machineActions('signin', 'startsignup', 'startforgotpassword')
164
+ actions: machineActions('signin', 'startsignup', 'startforgotpassword', 'resendsignupcode')
165
165
  };
166
166
  }
167
167
  }
@@ -186,8 +186,11 @@ export class AuthenticationService extends AuthenticationServiceBase {
186
186
  const state = await this.#cookie.read(cookies);
187
187
  if (!state)
188
188
  return this.getMachineState(cookies);
189
- state.metadata = undefined;
190
- state.substate = undefined;
189
+ await this.#cookie.write(cookies, {
190
+ ...state,
191
+ substate: undefined,
192
+ metadata: undefined
193
+ });
191
194
  return this.getMachineState(cookies);
192
195
  }
193
196
  else if (isAction(form, 'startsignup')) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wirejs-deploy-amplify-basic",
3
- "version": "0.0.31",
3
+ "version": "0.0.32",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",