All entries

    Expo Deep Links That Open the Right Screen After Login

    A deep link to a signed-out screen needs a short-lived destination that can survive login without becoming an open redirect.

    A traveller follows a route through a guarded station gate
    Conceptual pixel-art illustration.

    A deep link to a signed-out screen needs a short-lived destination that can survive login without becoming an open redirect.

    Build the example

    Normalize incoming links to an allowed route name and validated parameters before storing the intent. If a fixture opens /projects/alpha on cold start, wait for session initialization, authenticate, then consume the intent once. If the account lacks access to the project, show a clear fallback. Keep protected routes guarded after login since a remembered URL conveys no authority.

    Create a test intent for project alpha and a session that can only view project beta. A signed-in state alone should never advance to alpha’s data. Then switch to an authorized session and verify the intent expires after its configured deadline. Clear it on successful use so an unrelated app launch does not repeat navigation.

    EXPLAINED / SYSTEM FLOW

    A deep link to a signed-out screen needs a short-lived destination that can survive login without becoming an open redirect.

    1. Incoming link

      parse an allowlisted route

    2. Session

      wait for sign-in to resolve

    3. Access check

      consume the intent only when authorized

    THE KEY DISTINCTION

    consume the intent only when authorized

    Watch the failure boundary

    If the link includes sensitive information, avoid writing its entire URL to logs or persistent storage. A safe continuation record can hold just the validated route, allowed parameters and expiry. When multiple links arrive, define which one wins. Clearing the pending record on sign-out avoids navigating a different account into a previous session’s flow.

    Verify the behavior

    Test a valid link, an external URL, an expired intent and a user who signs into the wrong account. Repeat the login completion event to verify navigation happens once. Test a link delivered while the app is already running separately from a cold start because router and session initialization arrive in different orders.

    FURTHER READING

    Sources

    Technical references checked .

    END OF ENTRY / 40
    Eeshan Singh with Big Ben in London
    BEHIND THE JOURNAL

    Eeshan Singh

    I’m Eeshan Singh Pokharia, an AI Full Stack Developer and CoFounder of UltraFit360. I work across AI features, full-stack product development, and web and mobile experiences—from Figma and frontend interactions to the systems behind them.

    If the link includes sensitive information, avoid writing its entire URL to logs or persistent storage. A safe continuation record can hold just the validated route, allowed parameters and expiry. When multiple links arrive, define which one wins. Clearing the pending record on sign-out avoids navigating a different account into a previous session’s flow.

    Meet the author
    THE CONVERSATION

    Your side of the story.