{"repo":"andychukse/nuxt-auth","free":true,"listed":false,"github":"https://github.com/andychukse/nuxt-auth","clone":"git clone https://github.com/andychukse/nuxt-auth.git","description":"A Simple Nuxt authentication module with JWT and social login support for Nuxt Apps with separate backend","language":"TypeScript","stars":11,"topics":["authentication","nuxt","nuxt-module","nuxt3","nuxtjs"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Simple Nuxt Auth A simple and flexible authentication module for Nuxt 3 with JWT and social login support. This Auth Package only works for a Nuxt app that has a separate backend that handles authenthication Features - JWT Authentication : Secure token-based authentication - Social Login : Support for Google OAuth with flexible callback handling - Cookie Management : Secure HTTP-only cookies for token storage - Token Refresh : Automatic token refresh functionality - Route Protection : Built-in middleware for protecting routes - Flexible Configuration : Easy to configure and customize - SSR Support : Works with both client-side and server-side rendering - TypeScript : Full TypeScript support - OAuth Flows : Both client-side and server-side OAuth callback handling - Auto-imports : Composables and utilities are auto-imported Quick Setup 1. Add @andychukse/nuxt-auth dependency to your project 2. Add @andychukse/nuxt-auth to the modules section of nuxt.config.ts 3. Configure the module in your nuxt.config.ts Usage Basic Authentication Flow Sign In Form Register Form Advanced Google OAuth Integration The module provides two ways to handle Google OAuth: 1. Client-Side Callback (Recommended for SPAs) Create the callback page at /pages/auth/google/callback.vue : 2. Server-Side Callback (Recommended for SSR) Route Protection with Middleware Protect routes by adding the auth middleware: For guest-only pages (login, register), use the guest middleware: Social Authentication For Google au","default_branch":null,"files":null,"tree":[],"storefront":"/r/andychukse","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/andychukse/nuxt-auth/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}