{"id":15638122,"url":"https://github.com/manchenkoff/nuxt-auth-sanctum","last_synced_at":"2026-04-03T13:02:18.135Z","repository":{"id":196109265,"uuid":"694365638","full_name":"manchenkoff/nuxt-auth-sanctum","owner":"manchenkoff","description":"Nuxt module for Laravel Sanctum authentication","archived":false,"fork":false,"pushed_at":"2026-01-15T22:28:12.000Z","size":5619,"stargazers_count":266,"open_issues_count":0,"forks_count":36,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-01-16T01:49:22.815Z","etag":null,"topics":["laravel","laravel-sanctum","nuxt","nuxt-module","nuxt3","nuxt3-module","sanctum","sanctum-authentication","sanctum-spa","typescript","vue","vue3"],"latest_commit_sha":null,"homepage":"https://sanctum.manchenkoff.me/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/manchenkoff.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"manchenkoff","thanks_dev":"manchenkoff","buy_me_a_coffee":"manchenkoff","tidelift":"npm/nuxt-auth-sanctum"}},"created_at":"2023-09-20T21:19:08.000Z","updated_at":"2026-01-15T22:27:18.000Z","dependencies_parsed_at":"2023-09-21T11:11:53.969Z","dependency_job_id":"7a69e26c-aeb0-4695-9fbf-b61e0b94ddd3","html_url":"https://github.com/manchenkoff/nuxt-auth-sanctum","commit_stats":{"total_commits":269,"total_committers":9,"mean_commits":29.88888888888889,"dds":"0.16728624535315983","last_synced_commit":"154ee7c4a1e6871af4ce022a3ab07a630228bb51"},"previous_names":["manchenkoff/nuxt-auth-sanctum"],"tags_count":95,"template":false,"template_full_name":null,"purl":"pkg:github/manchenkoff/nuxt-auth-sanctum","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manchenkoff%2Fnuxt-auth-sanctum","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manchenkoff%2Fnuxt-auth-sanctum/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manchenkoff%2Fnuxt-auth-sanctum/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manchenkoff%2Fnuxt-auth-sanctum/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manchenkoff","download_url":"https://codeload.github.com/manchenkoff/nuxt-auth-sanctum/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manchenkoff%2Fnuxt-auth-sanctum/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28887093,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T21:06:44.224Z","status":"ssl_error","status_checked_at":"2026-01-29T21:06:42.160Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["laravel","laravel-sanctum","nuxt","nuxt-module","nuxt3","nuxt3-module","sanctum","sanctum-authentication","sanctum-spa","typescript","vue","vue3"],"created_at":"2024-10-03T11:18:50.347Z","updated_at":"2026-01-29T22:11:37.755Z","avatar_url":"https://github.com/manchenkoff.png","language":"TypeScript","funding_links":["https://github.com/sponsors/manchenkoff","https://thanks.dev/manchenkoff","https://buymeacoffee.com/manchenkoff","https://tidelift.com/funding/github/npm/nuxt-auth-sanctum"],"categories":[],"sub_categories":[],"readme":"# Nuxt Auth Sanctum\n\n[![npm version][npm-version-src]][npm-version-href]\n[![npm downloads][npm-downloads-src]][npm-downloads-href]\n[![License][license-src]][license-href]\n[![Nuxt][nuxt-src]][nuxt-href]\n\nThis module provides a simple way to use Laravel Sanctum with Nuxt by leveraging cookies-based authentication. SSR-ready!\n\n- [Documentation](https://sanctum.manchenkoff.me)\n- [Features](#features)\n- [Quick Setup](#quick-setup)\n\n## Features\n\nThis module includes a range of features designed to streamline authentication:\n\n- `useSanctumAuth` composable for easy access to the current user and authentication methods\n- `useSanctumFetch` and `useLazySanctumFetch` to load data from your API\n- Automated `CSRF` token header and cookie management\n- Automated `Bearer` token header management\n- Both `CSR` and `SSR` modes support\n- Pre-configured middleware for pages that require authentication\n- Cast current user information to any class you want\n- Custom `request` and `response` interceptors\n- Subscribe to `sanctum:*` hooks to react as you want\n- Compatible with default Nuxt `ofetch` client\n- TypeScript support\n- ... and more, check the docs!\n\n**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](https://laravel.com/docs/10.x/sanctum#spa-authentication).\n\nComplete documentation - [Nuxt Auth Sanctum docs](https://sanctum.manchenkoff.me)\n\n## Quick Setup\n\n1. Add `nuxt-auth-sanctum` dependency to your project\n\n```bash\nnpx nuxi@latest module add nuxt-auth-sanctum\n```\n\n2. Add any required configuration in your `nuxt.config.ts` file\n\n```js\nexport default defineNuxtConfig({\n  modules: [\"nuxt-auth-sanctum\"],\n\n  sanctum: {\n    baseUrl: \"http://localhost:80\", // Laravel API\n  },\n});\n```\n\nThat's it! You can now use Nuxt Auth Sanctum in your Nuxt app ✨\n\nFor more details, check the documentation [here](https://sanctum.manchenkoff.me)\n\n\u003c!-- Badges --\u003e\n\n[npm-version-src]: https://img.shields.io/npm/v/nuxt-auth-sanctum/latest.svg?style=flat\u0026colorA=18181B\u0026colorB=28CF8D\n[npm-version-href]: https://npmjs.com/package/nuxt-auth-sanctum\n[npm-downloads-src]: https://img.shields.io/npm/dm/nuxt-auth-sanctum.svg?style=flat\u0026colorA=18181B\u0026colorB=28CF8D\n[npm-downloads-href]: https://npm.chart.dev/nuxt-auth-sanctum\n[license-src]: https://img.shields.io/npm/l/nuxt-auth-sanctum.svg?style=flat\u0026colorA=18181B\u0026colorB=28CF8D\n[license-href]: https://npmjs.com/package/nuxt-auth-sanctum\n[nuxt-src]: https://img.shields.io/badge/Nuxt-18181B?logo=nuxt.js\n[nuxt-href]: https://nuxt.com\n\n### Powered by\n\n[![JetBrains logo.](https://resources.jetbrains.com/storage/products/company/brand/logos/jetbrains.svg)](https://jb.gg/OpenSource)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanchenkoff%2Fnuxt-auth-sanctum","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanchenkoff%2Fnuxt-auth-sanctum","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanchenkoff%2Fnuxt-auth-sanctum/lists"}