nuxt-auth-utils

Enable cookie-based authentication in Nuxt apps with OAuth handlers.

45|3|Updated Jan 20, 2026
One-click install
npx skills add https://github.com/YuDefine/nuxt-supabase-starter --skill nuxt-auth-utils
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: nuxt-auth-utils
Source: https://github.com/YuDefine/nuxt-supabase-starter/tree/main/.claude/skills/nuxt-auth-utils
Command: npx skills add https://github.com/YuDefine/nuxt-supabase-starter --skill nuxt-auth-utils

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Nuxt apps often need robust authentication without introducing a database for session storage; nuxt-auth-utils provides client and server helpers to manage sessions via cookies, enabling OAuth flows and route protection across deployment targets.

Core Features & Use Cases

  • Client: useUserSession() with user, loggedIn, session, fetch, clear
  • Server: requireUserSession(), getUserSession(), setUserSession(), clearUserSession()
  • OAuth handlers for Google and GitHub; easy integration across deployment targets

Quick Start

Install nuxt-auth-utils and configure OAuth providers in runtime config; then wire routes for login and callback.

Frequently Asked Questions about nuxt-auth-utils

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement cookie-based authentication in Nuxt without a database?▼

You can implement cookie-based authentication in Nuxt without a database by using nuxt-auth-utils, which provides client and server helpers to manage sessions via cookies across deployment targets.

Can I manage OAuth login flows for GitHub and Google in Nuxt?▼

Yes, you can manage OAuth login flows for GitHub and Google in Nuxt by configuring OAuth providers in runtime config and wiring server routes for login and callback handlers.

How do I access user sessions on the client side in a Nuxt app?▼

You access user sessions on the client side in a Nuxt app using the useUserSession() helper, which provides user, loggedIn, session, fetch, and clear properties.

What's the best way to protect server routes in Nuxt using cookie sessions?▼

The best way to protect server routes in Nuxt using cookie sessions is the requireUserSession() server helper, which ensures routes are only accessible to authenticated users.

Do I need runtimeConfig keys to set up OAuth providers in Nuxt?▼

Yes, you need runtimeConfig keys to set up OAuth providers in Nuxt, as they securely store OAuth provider credentials and session settings required by the server route callback handlers.