Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork6
Nuxt 3 module for seamless Laravel Sanctum authentication with SSR support.
qirolab/nuxt-sanctum-authentication
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
The nuxt-sanctum-authentication module seamlessly integrates Laravel Sanctumwith Nuxt 3 to provide a simple and secure authentication process for yourapplication. It works efficiently in both Server-Side Rendering (SSR) andClient-Side Rendering (CSR) environments, ensuring consistent and reliableauthentication regardless of how your app is rendered.
- Seamless CSR and SSR Support: Works smoothly in both client-side and server-side rendering modes.
- Automatic CSRF Token Management: Automatically handles CSRF tokens to protect your app from cross-site request forgery attacks.
- Bearer Token Management: Manages Bearer tokens for secure access to protected resources.
- Integration with Nuxt's ofetch Client: Fully compatible with Nuxt's ofetch client for making authenticated HTTP requests in your application.
Important: Before using this module, make sure that Laravel Sanctum is correctly configured on your backend. For more detailed setup instructions, refer to theLaravel Sanctum documentation.
For full documentation, including setup instructions and API reference, visit theNuxt Sanctum Authentication Documentation.
Watch the step-by-step guide on how to use thenuxt-sanctum-authentication
module in thisVideo Tutorial.
To explore the source code, check out theNuxt Sanctum Authentication Demo Repository.
- ForCookie-Based SPA Authentication, see the
main
branch. - ForAPI Token Authentication, check out the
api-token-authentication
branch.
Contributions to thenuxt-sanctum-authentication
module are welcome! Whether it's bug fixes, feature enhancements, or documentation improvements, feel free to submit a pull request.
- Fork the repository.
- Clone your forked repository.
- Install dependencies:
npm install
oryarn install
. - Make your changes and commit them with a clear and descriptive message.
- Push your changes to your forked repository.
- Submit a pull request.
If you found this demo helpful and want to support my work, check out some of my other products:
Thenuxt-sanctum-authentication
module is open-source software licensed under the MIT license.
About
Nuxt 3 module for seamless Laravel Sanctum authentication with SSR support.
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.