diff --git a/apps/easypid/src/app/(app)/_layout.tsx b/apps/easypid/src/app/(app)/_layout.tsx
index c2c94ac8..b3a38550 100644
--- a/apps/easypid/src/app/(app)/_layout.tsx
+++ b/apps/easypid/src/app/(app)/_layout.tsx
@@ -99,6 +99,7 @@ export default function AppLayout() {
+
diff --git a/apps/easypid/src/app/(app)/pidSetup.tsx b/apps/easypid/src/app/(app)/pidSetup.tsx
new file mode 100644
index 00000000..0bf74a2b
--- /dev/null
+++ b/apps/easypid/src/app/(app)/pidSetup.tsx
@@ -0,0 +1,5 @@
+import { FunkePidSetupScreen } from '@easypid/features/pid/FunkePidSetupScreen'
+
+export default function PidSetup() {
+ return
+}
diff --git a/apps/easypid/src/app/authenticate.tsx b/apps/easypid/src/app/authenticate.tsx
index 8978a71f..9626caa3 100644
--- a/apps/easypid/src/app/authenticate.tsx
+++ b/apps/easypid/src/app/authenticate.tsx
@@ -22,15 +22,26 @@ export default function Authenticate() {
const biometricsType = useBiometricsType()
const pinInputRef = useRef(null)
const [isInitializingAgent, setIsInitializingAgent] = useState(false)
+ const [isAllowedToUnlockWithFaceId, setIsAllowedToUnlockWithFaceId] = useState(false)
const isLoading =
secureUnlock.state === 'acquired-wallet-key' || (secureUnlock.state === 'locked' && secureUnlock.isUnlocking)
+ // After resetting the wallet, we want to avoid prompting for face id immediately
+ // So we add an artificial delay
+ useEffect(() => {
+ const timer = setTimeout(() => {
+ setIsAllowedToUnlockWithFaceId(true)
+ }, 500)
+
+ return () => clearTimeout(timer)
+ }, [])
+
// biome-ignore lint/correctness/useExhaustiveDependencies: canTryUnlockingUsingBiometrics not needed
useEffect(() => {
- if (secureUnlock.state === 'locked' && secureUnlock.canTryUnlockingUsingBiometrics) {
+ if (secureUnlock.state === 'locked' && secureUnlock.canTryUnlockingUsingBiometrics && isAllowedToUnlockWithFaceId) {
secureUnlock.tryUnlockingUsingBiometrics()
}
- }, [secureUnlock.state])
+ }, [secureUnlock.state, isAllowedToUnlockWithFaceId])
useEffect(() => {
if (secureUnlock.state !== 'acquired-wallet-key') return
diff --git a/apps/easypid/src/features/menu/FunkeMenuScreen.tsx b/apps/easypid/src/features/menu/FunkeMenuScreen.tsx
index dcf639fc..e67c23aa 100644
--- a/apps/easypid/src/features/menu/FunkeMenuScreen.tsx
+++ b/apps/easypid/src/features/menu/FunkeMenuScreen.tsx
@@ -51,7 +51,7 @@ export function FunkeMenuScreen() {