All skills
onmax avatar

/nuxt-better-auth

@e44f20d

Guides authentication in Nuxt apps using @nuxtjs/better-auth. Use when installing or configuring the module, using its client or server APIs, protecting routes, refreshing sessions, or integrating Better Auth plugins.

  • 9 files
  • 19.9 KB
  • MIT
  • Updated last week
  • GitHub

Use this Skill: https://skilld.dev/gh/onmax/claude-config/nuxt-better-auth

This session only. Nothing lands on disk.

referencesclient-only.md

≈225 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Client-only mode

Use clientOnly when Better Auth runs on a separate backend.

Minimal setup

export default defineNuxtConfig({
  modules: ['@nuxtjs/better-auth'],
  auth: {
    clientOnly: true,
  },
})
NUXT_PUBLIC_SITE_URL=https://auth.example.com

The site URL is the default auth client base URL. An explicit client config value takes precedence:

export default defineClientAuth({
  baseURL: 'https://auth.example.com',
})

What changes

  • no local /api/auth/** handlers
  • no local server/auth.config.ts
  • no server utilities such as serverAuth() or requireUserSession()
  • no SSR session hydration from a local auth server
  • useUserSession() still works on the client

External server requirements

  • allow cross-origin requests with credentials
  • use secure cross-site cookies when needed
  • include the frontend origin in trustedOrigins

Source: SKILL.md on GitHub

No third-party reports yet.

Signed by skilld at e44f20d. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 10 hours ago.

Activeupdated last week

README badge

README badge for onmax/claude-config/nuxt-better-auth