Giter Site home page Giter Site logo

sudokmaar / authbykmaar Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 1 MB

Auth by KMaar is a comprehensive authentication solution for Next.js applications. It leverages the power of Next-auth v5 and Next.js 14 to provide a robust and secure authentication system.

Home Page: https://authbykmaar.vercel.app/

TypeScript 98.05% CSS 1.74% JavaScript 0.21%
kmaar-miscellaneous-studio abhishek-kmaar abhishek-kumar kmaar auth authjs authy email-verification next-auth nextjs oauth postgresql prisma shadcn-ui tailwindcss typescript auth-by-kmaar

authbykmaar's Introduction

Auth by KMaar

Auth by KMaar is a comprehensive authentication solution for Next.js applications. It leverages the power of Next-auth v5 and Next.js 14 to provide a robust and secure authentication system.

Key Features

  • Next-auth v5 (Auth.js): Utilizes the latest version of Next-auth for secure authentication.
  • Next.js 14 with server actions: Built on the latest version of Next.js with server actions for enhanced performance.
  • Credentials Provider: Allows users to sign in using their credentials.
  • OAuth Provider: Supports social login with Google & GitHub.
  • Forgot password functionality: Users can recover their account using the forgot password feature.
  • Email verification: Ensures user authenticity with email verification.
  • Two factor verification: Provides an extra layer of security with two-factor authentication.
  • User roles (Admin & User): Supports different user roles with varying levels of access.
  • Login/Register/Forgot password components: User-friendly components for various authentication processes.
  • Verification/Error components: Components to handle verification and display errors.
  • Login/Logout buttons: Easy-to-use login and logout buttons.
  • Role Gate: Restricts access based on user roles.
  • Exploring next.js middleware: Middleware exploration for advanced functionalities.
  • Extending & Exploring next-auth session/callbacks: Advanced session management and callback exploration.
  • useCurrentUser/useRole hooks: Custom hooks for accessing current user and role.
  • currentUser/currentRole utilities: Utilities for managing current user and role.
  • Example with server/client component: Examples provided for both server and client components.
  • Render content for admins using RoleGate component: Special rendering for admin users.
  • Protect API Routes/Server Actions for admins only: Enhanced security by protecting API routes and server actions for admins only.
  • Change email/password/two-factor auth/user role in Settings page: Allows users to manage their account settings.

Getting Started

  1. Clone the repository
  2. Install dependencies with npm install
  3. Start the development server with npm run dev

Contributing

We welcome contributions from the community. Please read our contributing guide for more information.

License

This project is licensed under the MIT License. See the LICENSE file for details.

authbykmaar's People

Contributors

sudokmaar avatar

Watchers

 avatar

Forkers

kmstudio44

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.