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

Neoconfetti Vue Confetti Library
icon-eye-dark Created with Sketch. 2.441
Vue Vine Multiple Vue Components in a Single File
icon-eye-dark Created with Sketch. 1.723
Sentry for Vue Vue Application Monitoring
πŸ’š Sponsored by Friends
We’re hosting on Digital Ocean! πŸ’™ Try it today and get a free $100 credit.
Nuxt Security Security Module for Nuxt
icon-eye-dark Created with Sketch. 767
Vue State Store πŸ“¬ Distributed Vue State Management
icon-eye-dark Created with Sketch. 2.226