made with vue.js

Nuxt Auth Sanctum

Nuxt Module for Laravel Sanctum Authentication

Visit Site

Description

Nuxt Module for Laravel Sanctum Authentication

"This module provides a simple way to use Laravel Sanctum with Nuxt by leveraging cookies-based authentication. SSR-ready!"

  • useSanctumAuth composable for easy access to the current user and authentication methods
  • useSanctumFetch and useLazySanctumFetch to load data from your API
  • Automated CSRF token header and cookie management
  • Automated Bearer token header management
  • Both CSR and SSR modes support
  • Pre-configured middleware for pages that require authentication
  • Cast current user information to any class you want
  • Custom request and response interceptors
  • Subscribe to sanctum:* hooks to react as you want
  • Compatible with default Nuxt ofetch client
  • TypeScript support
  • ... and more!

Creator

Artem Manchenkov
@AManchenkov
@manchenkoff.bsky.social


Social Media Links

Vue Visual Filter Visual Filtering Component
icon-eye-dark Created with Sketch. 4.445
Vue3 DnD Drag & Drop Utilities
icon-eye-dark Created with Sketch. 16.148
Sentry for Vue Vue Application Monitoring
💚 Sponsored by Friends
Nuxt Modules CLI Browse Nuxt.js Modules from the Terminal
icon-eye-dark Created with Sketch. 1.101
VueTypes Vue Prop Types Definitions
icon-eye-dark Created with Sketch. 1.137
Vuelidate Model-based Validation
icon-eye-dark Created with Sketch. 3.212