Skip to content

Detect Veriff return and reconcile verification status with polling + UI banner#62

Merged
SaltProphet merged 2 commits intomainfrom
implement-veriff-polling-and-status-update
Mar 6, 2026
Merged

Detect Veriff return and reconcile verification status with polling + UI banner#62
SaltProphet merged 2 commits intomainfrom
implement-veriff-polling-and-status-update

Conversation

@SaltProphet
Copy link
Owner

Motivation

  • Finalize identity verification status when the user returns from Veriff so session gating and UI reflect the true state without requiring a manual refresh.
  • Provide visible feedback (spinner/banner) while verification is being finalized so users know the verification flow is in progress.

Description

  • Added verification reconciliation state and return detection flags to the client: verificationReconcileState and verificationReturnDetected in src/app/page.tsx.
  • Detects Veriff return signals from URL query parameters (e.g. veriff_return, verification_return, session_id, status) and immediately updates local user.isVerified when a terminal status (approved/declined) is present.
  • Starts a temporary polling loop that queries the Supabase profiles row (.select('is_verified')) with timeout and progressive backoff to reconcile verification status and updates local user.isVerified on success or sets a timeout state on expiry, implemented in src/app/page.tsx.
  • Adds visible UI feedback: a spinner banner while reconciliation is pending and a decline banner for declined results, rendered in src/app/page.tsx.
  • Extended the static feature wiring test src/app/__tests__/featureWiring.test.ts to assert the verification reconciliation wiring (presence of new state keys, messages, and profile .select('is_verified') usage).

Testing

  • Ran the focused static test file with npm test -- src/app/__tests__/featureWiring.test.ts and it passed (all tests in that file succeeded).
  • Launched the dev server with npm run dev and exercised the verification-return UI (a screenshot of the reconciliation banner was captured during a test request), noting non-blocking Google Fonts TLS warnings during dev startup.

Codex Task

@vercel
Copy link
Contributor

vercel bot commented Mar 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
secpriva Error Error Mar 6, 2026 1:53am

Request Review

@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@SaltProphet SaltProphet merged commit eb19fb9 into main Mar 6, 2026
2 of 9 checks passed
@SaltProphet SaltProphet deleted the implement-veriff-polling-and-status-update branch March 6, 2026 01:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant