Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into feat/multi-vp-support
Browse files Browse the repository at this point in the history
  • Loading branch information
TimoGlastra committed Sep 26, 2024
2 parents d2c0133 + 1b8c197 commit b48e495
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion apps/easypid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
"babel-plugin-module-resolver": "^4.1.0",
"burnt": "^0.12.2",
"expo": "~51.0.12",
"expo-blur": "^13.0.2",
"expo-barcode-scanner": "~13.0.1",
"expo-constants": "~16.0.2",
"expo-blur": "^13.0.2",
"expo-dev-client": "~4.0.16",
"expo-font": "~12.0.7",
"expo-haptics": "~13.0.1",
Expand Down
8 changes: 4 additions & 4 deletions apps/easypid/src/features/onboarding/onboardingContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -341,13 +341,13 @@ export function OnboardingContextProvider({
}, [])

const onPinReEnter = async (pin: string) => {
// Spells SERVER & BROKEN on the pin pad (with letters)
// Spells BROKEN on the pin pad (with letters)
// Allows bypassing the eID card and use a simulator card
const isSimulatorPinCode = walletPin === '737837' && pin === '276536'
const isSimulatorPinCode = pin === '276536'

if (isSimulatorPinCode) {
setAllowSimulatorCard(true)
} else if (walletPin !== pin) {
} else if (!walletPin || walletPin !== pin) {
toast.show('Pin entries do not match', {
customData: { preset: 'danger' },
})
Expand All @@ -363,7 +363,7 @@ export function OnboardingContextProvider({

return (
secureUnlock
.setup(walletPin)
.setup(walletPin as string)
.then(({ walletKey }) => initializeAgent(walletKey))
// After `initializeAgent` function is finished we can assume that `setAgent(agent)` is called and the agent is set
// We store the wallet pin as the pid pin. We do this to avoid a double key derivation which is too much of a slow down
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"@animo-id/expo-secure-environment": "0.1.0-alpha.5",
"@animo-id/expo-ausweis-sdk": "0.0.1-alpha.14",
"react-native": "0.74.5",
"expo-camera": "~15.0.16",
"@sphereon/pex": "5.0.0-unstable.2"
},
"patchedDependencies": {
Expand Down
1 change: 0 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file removed sphereon-pex-5.0.0-unstable.0-paradym-multi-vp.tgz
Binary file not shown.

0 comments on commit b48e495

Please sign in to comment.