@springmicro/auth 0.5.9 → 0.5.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@springmicro/auth",
3
- "version": "0.5.9",
3
+ "version": "0.5.10",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -16,7 +16,6 @@
16
16
  "preview": "vite preview"
17
17
  },
18
18
  "peerDependencies": {
19
- "auth-astro": "^4.1.0",
20
19
  "react": "^18.0.0",
21
20
  "react-dom": "^18.0.0"
22
21
  },
@@ -54,5 +53,5 @@
54
53
  "react-social-login-buttons": "^4.1.0",
55
54
  "uuid": "^9.0.1"
56
55
  },
57
- "gitHead": "1fe9c4a845356e81452c10106dbc3c5266e42ddf"
56
+ "gitHead": "5452992c33d3a01f1ae831eba4f288e4bc91ad14"
58
57
  }
@@ -166,7 +166,10 @@ export function getDefaultValues(signupItems: SignupItem[]) {
166
166
 
167
167
  export function requiresCode(signupItem: SignupItem) {
168
168
  const key = getKey(signupItem);
169
- return (key === "email" || key === "phone") && signupItem.rule !== "None";
169
+ return (
170
+ (key === "email" || key === "phone") &&
171
+ !["None", "No verification"].includes(signupItem.rule)
172
+ );
170
173
  }
171
174
 
172
175
  export function isVisible(signupItem: SignupItem) {