Skip to content

Version Packages - #64

Merged
Bccorb merged 1 commit into
mainfrom
changeset-release/main
Sep 7, 2026
Merged

Version Packages#64
Bccorb merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

@github-actions github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@seamless-auth/types@0.20.0

Minor Changes

  • 9541d01: Carry returnTo back out of the OAuth callback, and hold it to a scheme that can be a
    link destination.

    StartOAuthLoginRequestSchema has taken a returnTo since OAuth landed, and nothing ever
    gave it back. seamless-auth-api validated it against the configured origins and signed it
    into the state, and seamless-auth-react sent it, but no schema carried it to the end of the
    flow, so a client that asked to be returned somewhere had no way to learn where. It was a
    field that looked supported and did nothing.

    OAuthLoginSuccessResponseSchema now carries an optional returnTo. The API reads it back
    out of the signed state rather than from the callback request, so it is the value validated
    at /start and not one introduced at the end of the round trip. Absent when the caller asked
    for nothing, so a client falls through to its own default rather than treating absence as an
    error.

    Both returnTo fields move from z.url() to RedirectTargetSchema. z.url() accepts
    javascript:alert(1) and data:text/html,..., and a client navigates to whatever comes back
    out of this flow, so it is the same sink a magic link destination is. That is what
    RedirectTargetSchema was added for in 0.18.0, and the OAuth fields should have used it
    then.

    Additive for a consumer that ignores the new field. A caller that was somehow sending a
    javascript: or data: returnTo is now refused at the schema rather than later, which is
    the intended change.

@github-actions
github-actions Bot force-pushed the changeset-release/main branch from 03d4d46 to d7ae1e2 Compare September 7, 2026 21:57
@github-actions
github-actions Bot requested a review from Bccorb as a code owner September 7, 2026 21:57
@github-actions
github-actions Bot force-pushed the changeset-release/main branch 2 times, most recently from 49c1623 to 52619a7 Compare September 7, 2026 22:01
@github-actions
github-actions Bot force-pushed the changeset-release/main branch from 52619a7 to 70e1b4b Compare September 7, 2026 22:01
@Bccorb
Bccorb merged commit 08072ba into main Sep 7, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant