Skip to content

fix(types): avoid global auth endpoint inference#374

Merged
onmax merged 1 commit into
mainfrom
fix/nitro-internal-api-types
Jun 29, 2026
Merged

fix(types): avoid global auth endpoint inference#374
onmax merged 1 commit into
mainfrom
fix/nitro-internal-api-types

Conversation

@onmax

@onmax onmax commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

Removes the generated Better Auth endpoint map from Nitro's global InternalApi augmentation. Auth endpoint payload typing stays available through the scoped helpers (useFetch, useLazyFetch, useAuthRequestFetch, and AuthApiEndpointResponse) without changing every app-level $fetch inference path.

This avoids unrelated Nitro route inference collapsing in downstream apps while keeping the dedicated auth DX surface typed.

@vercel

vercel Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Deployment failed with the following error:

Resource is limited - try again in 24 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/maximogarciamartinezs-projects?upgradeToPro=build-rate-limit

@pkg-pr-new

pkg-pr-new Bot commented Jun 29, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@onmax/nuxt-better-auth@374

commit: 1546f84

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
better-auth 1546f84 Jun 29 2026, 10:37 AM

@onmax onmax marked this pull request as ready for review June 29, 2026 10:50
@onmax onmax merged commit 7fb3e3b into main Jun 29, 2026
3 of 5 checks passed
@onmax onmax deleted the fix/nitro-internal-api-types branch June 29, 2026 12:29
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