nuxt / modules

Discover the Nuxt modules to add any CMS, Database, UI, Auth and integrations into your Vue application.
https://nuxt.com/modules
MIT License
928 stars 256 forks source link

[Module Listing Request]: `workmate-auth module` #1033

Open dev-davexoyinbo opened 1 month ago

dev-davexoyinbo commented 1 month ago

Description

Simplifies authentication setup for Nuxt.js applications, offering robust support for OAuth, JWT, and local authentication strategies. Designed for seamless integration, it provides features like user management, secure token handling, and middleware support, ensuring efficient and secure authentication workflows.

Motivation

I created this for simplified use cases and the motivation was because of 2 major reasons:

  1. The use cases of the auth token from sidebase while using useFetch and $fetch are not direct
  2. This is more important. The sidebase auth module adds the users options to the public runtime which is a big security issue as it adds potential secrets in the public runtime. I tried to make it work in a mini module, but I realized why they did it, non-public runtime configs are not so easily reached as compared to public runtimes, but this compromise for security is not acceptable.

Repository

https://github.com/work-mate/nuxt-auth-module

npm

https://www.npmjs.com/package/@workmate/nuxt-auth

Nuxt Compatibility

Nuxt 3