Skip to content

feat(types): autocomplete auth usefetch paths#196

Merged
onmax merged 1 commit intomainfrom
feat/use-fetch-auth-path-autocomplete-194
Feb 28, 2026
Merged

feat(types): autocomplete auth usefetch paths#196
onmax merged 1 commit intomainfrom
feat/use-fetch-auth-path-autocomplete-194

Conversation

@onmax
Copy link
Collaborator

@onmax onmax commented Feb 27, 2026

Summary

  • add generated request-path helpers for auth endpoints, including dynamic path support (:id -> ${string})
  • augment useFetch and useLazyFetch typing for /api/auth/... path autocomplete and payload inference
  • type useAuthRequestFetch with auth endpoint inference while keeping fallback behavior
  • add a dedicated type regression fixture and harness for fetch path inference
  • update docs to show inferred auth fetch usage first, including dynamic path examples

Tests

  • pnpm lint
  • pnpm vitest run test/infer-use-fetch-endpoints-types.test.ts test/infer-nitro-endpoints-types.test.ts test/infer-plugins-types.test.ts

Related

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 27, 2026

Open in StackBlitz

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

commit: ffd2adf

@onmax onmax merged commit bdbe8f9 into main Feb 28, 2026
2 checks passed
@onmax onmax deleted the feat/use-fetch-auth-path-autocomplete-194 branch February 28, 2026 08:17
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