The PIN validation is failing on the
owner dashboard page. The shop is created
with a PIN and stored in DynamoDB, but
when the owner tries to access dashboard
with the same PIN it shows "Invalid PIN".
Fix the PIN verification:
- When verifying PIN, fetch the shop from
DynamoDB using the shopId from URL params
- Compare the entered PIN with the stored
PIN using exact string match after trimming
- The shopId in URL is encoded - decode it
properly before querying DynamoDB
- Add console.log to debug what PIN is
stored vs what is entered