Nuxt Auth Sanctum

screenshot of Nuxt Auth Sanctum
laravel
nuxt
vue

Nuxt module for Laravel Sanctum authentication

Overview:

Nuxt Auth Sanctum is a module that provides a simple way to use Laravel Sanctum with Nuxt. It leverages cookies-based authentication and is SSR-ready. Before using this module, make sure you have already configured Laravel Sanctum on your backend.

Features:

  • useSanctumAuth composable for easy access to the current user and authentication methods
  • Automated CSRF token header and cookie management
  • Support for both CSR and SSR modes
  • Pre-configured middleware for pages that require authentication
  • Ability to cast current user information to any class
  • Compatible with the default Nuxt ofetch client
  • TypeScript support
laravel
Laravel

Laravel is a powerful and elegant PHP framework that provides developers with a comprehensive set of tools and features to build robust web applications. It follows the Model-View-Controller (MVC) architectural pattern, offering a clean and organized structure for writing efficient and maintainable code.

nuxt
Nuxt

nuxt.js is a lightweight and flexible JavaScript framework that allows developers to easily build dynamic and reactive user interfaces. Its intuitive syntax, modular architecture, and focus on performance make it a popular choice for modern web development.

vue
Vue

Vue.js is a lightweight and flexible JavaScript framework that allows developers to easily build dynamic and reactive user interfaces. Its intuitive syntax, modular architecture, and focus on performance make it a popular choice for modern web development.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.