Skip to content

feat(verify): handle direct visits to /verify with no state context #591

Closed as not planned

Description

@0xdevcollins

Context

PR #590 added /verify as the post-KYC result page. It's designed to be hit via the backend redirect (/verify?state=in_review&session_id=...).

A user who lands there directly — old email link, bookmark, manual URL paste — sees the not_started card with a "Verify identity" button. That's accurate but slightly off-key: this page is a result page, not a launchpad.

Suggested fix

Detect direct visits (no ?state= query AND no ?session_id=) and redirect to /me/settings?tab=identity. The Settings tab has the verification section that's purpose-built for starting from cold.

Pseudo:

useEffect(() => {
  const hasState = searchParams.get('state');
  const hasSession = searchParams.get('session_id');
  if (!hasState && !hasSession) {
    router.replace('/me/settings?tab=identity');
  }
}, [...]);

Keep the existing fallback (router.replace('/')) for the error-with-no-state case.

Where

app/verify/page.tsx → VerifyResult (top-level effect).

Severity / effort

P3 / polish. ~15 min.

Linked

Activity

  1. linear commented on May 25, 2026

    @linear
  2. coderabbitai commented on May 25, 2026

    @coderabbitai
    🔗 Related PRs

    #412 - feat: implement Coming Soon page and consolidate placeholder routes [merged]
    #440 - feat: integrate Didit identity verification for KYC compliance [merged]
    #584 - fix(auth): send absolute callbackURL on Google sign-up [merged]


    📝 Issue Planner

    Check the box below or use the @coderabbitai plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.

    • Create Plan

    🧪 Issue enrichment is currently in open beta.

    You can configure auto-planning by selecting labels in the issue_enrichment configuration.

    To disable automatic issue enrichment, add the following to your .coderabbit.yaml:

    issue_enrichment:
      auto_enrich:
        enabled: false

    💬 Have feedback or questions? Drop into our discord!

  3. bamiebot-maker commented on Jun 16, 2026

    @bamiebot-maker

    i am ready to work on this
    kindly assign this to me

  4. ryzen-xp commented on Jun 17, 2026

    @ryzen-xp
    Contributor

    Hi maintainers 👋
    I’m a blockchain developer with strong expertise in Stellar, Rust,TS and Stellar SDK integrations. I’ve worked on multiple Stellar-based smart contract and backend systems.

    I understand the scope of this issue and can deliver a reliable, production-quality solution with proper tests and documentation.
    Plz assign me !!

    ETA: 24 hours

  5. nikkybel commented on Jun 17, 2026

    @nikkybel

    Hey maintainer, please I will like to tackle this issue?

  6. akintewe commented on Jun 17, 2026

    @akintewe
    Contributor

    I've been creating intricate forms and e-commerce systems for more than four years as a full-stack developer. I have designed inventory management systems for agricultural enterprises and have experience with image processing and large-scale state management. I have also worked on this project in the past.
    My ETA is one hour, and I would love to work on this problem.

  7. barry01-hash commented on Jun 20, 2026

    @barry01-hash

    I would love to work on this issue my chief, please approve

  8. leocagli commented on Jun 23, 2026

    @leocagli

    I've reviewed the issue and have a solid plan. Please assign me to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions