Skip to content

fix(docs): clarify custom DB CLI + deps#92

Closed
onmax wants to merge 2 commits intomainfrom
feat/client-extend
Closed

fix(docs): clarify custom DB CLI + deps#92
onmax wants to merge 2 commits intomainfrom
feat/client-extend

Conversation

@onmax
Copy link
Collaborator

@onmax onmax commented Feb 5, 2026

Summary

  • document better-auth as required for adapter imports
  • fix schema generation command to use @better-auth/cli
  • add Nuxt CLI config guidance with auth.ts example and --config usage

Tests

  • not run (docs-only)

Closes #93

@vercel
Copy link
Contributor

vercel bot commented Feb 5, 2026

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

Project Deployment Actions Updated (UTC)
nuxt-better-auth-docs Ready Ready Preview, Comment Feb 5, 2026 7:05pm

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 5, 2026

Open in StackBlitz

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

commit: 608d25f

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 5, 2026

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 successful!
View logs
nuxt-better-auth-demo 608d25f Feb 05 2026, 07:01 PM

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d1f8115e8e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

type _ClientConfig = ReturnType<typeof getClientConfig>
declare module '#nuxt-better-auth' {
export type AppAuthClient = ReturnType<typeof createAppAuthClient>
export type AppAuthClient = ReturnType<(typeof createAuthClient)<_ClientConfig>>

Choose a reason for hiding this comment

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

P1 Badge Fix invalid generic syntax in generated AppAuthClient type

The generated declaration string uses ReturnType<(typeof createAuthClient)<_ClientConfig>>, which is not a valid way to instantiate a generic function type in TypeScript, so consumers can hit a parse/type error in the emitted nuxt-better-auth-client.d.ts during nuxi prepare/typecheck. This breaks module typings for all projects that consume the generated declaration; the type needs to be expressed with a valid instantiation form.

Useful? React with 👍 / 👎.

import { computed, nextTick, useRequestHeaders, useRequestURL, useRuntimeConfig, useState, watch } from '#imports'
import { createAuthClient } from 'better-auth/vue'

type AuthClient = ReturnType<typeof createAuthClient>

Choose a reason for hiding this comment

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

P2 Badge Preserve configured client type in useUserSession return types

useUserSession now aliases AuthClient to ReturnType<typeof createAuthClient> instead of the generated AppAuthClient, which drops plugin-aware typing from the user/module client config. In projects that add client plugins (including via the new better-auth:client:extend hook), runtime methods exist but client, signIn, and signUp are no longer typed with those extensions, forcing unsafe casts and undermining the new extension flow.

Useful? React with 👍 / 👎.

@onmax onmax changed the title feat: add client config extension hook fix(docs): clarify custom DB CLI + deps Feb 5, 2026
@onmax
Copy link
Collaborator Author

onmax commented Feb 5, 2026

Closing: the docs fix was merged via #94 and this PR also includes unrelated feature work with failing CI. We'll re-open the client-extend work as a clean PR off main.

@onmax onmax closed this Feb 5, 2026
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.

Documentation on adding better-auth tables to custom database

1 participant