{"repo":"manchenkoff/nuxt-auth-sanctum","free":true,"listed":false,"github":"https://github.com/manchenkoff/nuxt-auth-sanctum","clone":"git clone https://github.com/manchenkoff/nuxt-auth-sanctum.git","description":"Nuxt module for Laravel Sanctum authentication","language":"TypeScript","stars":287,"topics":["laravel","laravel-sanctum","nuxt","nuxt-module","nuxt3","nuxt3-module","sanctum","sanctum-authentication","sanctum-spa","typescript"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Nuxt Auth Sanctum [![npm version][npm-version-src]][npm-version-href] [![npm downloads][npm-downloads-src]][npm-downloads-href] [![License][license-src]][license-href] [![Nuxt][nuxt-src]][nuxt-href] This module provides a simple way to use Laravel Sanctum with Nuxt by leveraging cookies-based authentication. SSR-ready! - Documentation - Features - Quick Setup Features This module includes a range of features designed to streamline authentication: - 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, check the docs! Note: Before using this module, please make sure that you have already configured Laravel Sanctum on your backend. You can find more information about Laravel Sanctum here. Complete documentation - Nuxt Auth Sanctum docs Quick Setup 1. Add nuxt-auth-sanctum dependency to your project 2. Add any required configuration in your nuxt.config.ts file That's it! You can now use Nuxt Auth Sanctum in your Nuxt app ✨ For more details, check the documentat","default_branch":null,"files":null,"tree":[],"storefront":"/r/manchenkoff","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/manchenkoff/nuxt-auth-sanctum/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."}