Skip to content

chore: re-export third party types#5839

Merged
himself65 merged 7 commits intobetter-auth:canaryfrom
himself65:himself65/2025/11/07/re-export
Nov 7, 2025
Merged

chore: re-export third party types#5839
himself65 merged 7 commits intobetter-auth:canaryfrom
himself65:himself65/2025/11/07/re-export

Conversation

@himself65
Copy link
Copy Markdown
Contributor

@himself65 himself65 commented Nov 7, 2025

Summary by cubic

Re-exported jose and zod types from the @better-auth entrypoint to simplify consumer imports. You can now import JSONWebKeySet, JWTPayload, and all zod types (including v4) directly from @better-auth.

  • Dependencies
    • Upgraded zod to 4.1.12 and switched internal code to named imports (import { z } from "zod").

Written for commit 2ec9485. Summary will update automatically on new commits.

Copilot AI review requested due to automatic review settings November 7, 2025 18:53
@himself65 himself65 requested a review from Bekacru as a code owner November 7, 2025 18:53
@vercel
Copy link
Copy Markdown

vercel bot commented Nov 7, 2025

@himself65 is attempting to deploy a commit to the better-auth Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link
Copy Markdown

vercel bot commented Nov 7, 2025

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

Project Deployment Preview Comments Updated (UTC)
better-auth-demo Building Building Preview Comment Nov 7, 2025 6:53pm
better-auth-stateless-demo Building Building Preview Comment Nov 7, 2025 6:53pm
1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
better-auth-docs Skipped Skipped Nov 7, 2025 6:53pm

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Nov 7, 2025

Open in StackBlitz

better-auth

npm i https://pkg.pr.new/better-auth/better-auth@5839

@better-auth/cli

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/cli@5839

@better-auth/core

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/core@5839

@better-auth/expo

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/expo@5839

@better-auth/passkey

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/passkey@5839

@better-auth/sso

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/sso@5839

@better-auth/stripe

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/stripe@5839

@better-auth/telemetry

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/telemetry@5839

commit: 2ec9485

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds re-exports of third-party types from the jose and zod libraries to better-auth's main entry point, making these types available to consumers of the library.

  • Exports JSONWebKeySet and JWTPayload types from the jose library
  • Exports all types from a zod/v4 subpath
  • Adds a comment clarifying these are third-party type re-exports

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 61 files

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 10 files

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

@himself65 himself65 enabled auto-merge November 7, 2025 19:53
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

@himself65 himself65 added this pull request to the merge queue Nov 7, 2025
Merged via the queue into better-auth:canary with commit 3b12faf Nov 7, 2025
10 of 13 checks passed
@himself65 himself65 deleted the himself65/2025/11/07/re-export branch November 9, 2025 23:12
rae-fcm pushed a commit to FullCodeMedical/better-auth that referenced this pull request Mar 9, 2026
rae-fcm pushed a commit to FullCodeMedical/better-auth that referenced this pull request Mar 9, 2026
rae-fcm pushed a commit to FullCodeMedical/better-auth that referenced this pull request Mar 10, 2026
@better-auth better-auth locked as resolved and limited conversation to collaborators Mar 31, 2026
@bytaesu bytaesu added the locked Locked conversations after being closed for 7 days label Mar 31, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

locked Locked conversations after being closed for 7 days

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants