
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
nuxt-auth-sanctum
Advanced tools
This module provides a simple way to use Laravel Sanctum with Nuxt by leveraging cookies-based authentication. SSR-ready!
This module includes a range of features designed to streamline authentication:
useSanctumAuth composable for easy access to the current user and authentication methodsuseSanctumFetch and useLazySanctumFetch to load data from your APICSRF token header and cookie managementBearer token header managementCSR and SSR modes supportrequest and response interceptorssanctum:* hooks to react as you wantofetch clientNote: 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
nuxt-auth-sanctum dependency to your projectnpx nuxi@latest module add nuxt-auth-sanctum
nuxt.config.ts fileexport default defineNuxtConfig({
modules: ["nuxt-auth-sanctum"],
sanctum: {
baseUrl: "http://localhost:80", // Laravel API
},
});
That's it! You can now use Nuxt Auth Sanctum in your Nuxt app ✨
For more details, check the documentation here
FAQs
Nuxt module for Laravel Sanctum authentication
The npm package nuxt-auth-sanctum receives a total of 2,433 weekly downloads. As such, nuxt-auth-sanctum popularity was classified as popular.
We found that nuxt-auth-sanctum demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.