UNPKG

create-better-t-stack

Version:

A modern CLI tool for scaffolding end-to-end type-safe TypeScript projects with best practices and customizable configurations

17 lines (13 loc) 316 B
import { createAuthClient } from "better-auth/vue"; export default defineNuxtPlugin(nuxtApp => { const config = useRuntimeConfig() const serverUrl = config.public.serverURL const authClient = createAuthClient({ baseURL: serverUrl }) return { provide: { authClient: authClient } } })