Socket
Socket
Sign inDemoInstall

@next-auth/mikro-orm-adapter

Package Overview
Dependencies
Maintainers
4
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@next-auth/mikro-orm-adapter

MikroORM adapter for next-auth.


Version published
Weekly downloads
253
increased by12.44%
Maintainers
4
Weekly downloads
 
Created
Source


    

Mikro ORM Adapter - NextAuth.js

Open Source. Full Stack. Own Your Data.

CI Test Bundle Size @next-auth/mikro-orm-adapter Version

Overview

This is the MikroORM Adapter for next-auth. This package can only be used in conjunction with the primary next-auth package. It is not a standalone package.

Getting Started

  1. Install next-auth and @next-auth/mikro-orm-adapter

    npm install next-auth @next-auth/mikro-orm-adapter@next
    
  2. Add this adapter to your pages/api/[...nextauth].ts next-auth configuration object.

    import NextAuth from "next-auth"
    import { MikroOrmAdapter } from "@next-auth/mikro-orm-adapter"
    
    // For more information on each option (and a full list of options) go to
    // https://next-auth.js.org/configuration/options
    export default NextAuth({
       // https://next-auth.js.org/configuration/providers
       providers: [],
       adapter: MikroOrmAdapter({
          dbName: "./db.sqlite",
          type: "sqlite",
          debug: process.env.DEBUG === "true" || process.env.DEBUG?.includes("db"),
          ...
       }, {
          // pass extended models as { entities: { } } if needed
       }),
       ...
    });
    

Contributing

We're open to all community contributions! If you'd like to contribute in any way, please read our Contributing Guide.

License

ISC

Keywords

FAQs

Package last updated on 09 Oct 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc