@springmicro/auth 0.5.9 → 0.5.11
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 +2 -3
- package/src/components/util.tsx +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@springmicro/auth",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.11",
|
|
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": "
|
|
56
|
+
"gitHead": "229ac879bbc1c5e1df2a7a91e670d9195c128c7e"
|
|
58
57
|
}
|
package/src/components/util.tsx
CHANGED
|
@@ -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 (
|
|
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) {
|