Socket
Socket
Sign inDemoInstall

next-auth-deta

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

next-auth-deta

A Deta adapter for NextAuth.js


Version published
Maintainers
1
Created
Source

Deta Adapter - NextAuth.js

This is a Deta adapter for next-auth.

Getting Started

  1. Install this package, next-auth-deta, as well as next-auth and deta.
# npm
npm install next-auth-deta next-auth deta

# yarn
yarn add next-auth-deta next-auth deta

# pnpm
pnpm add next-auth-deta next-auth deta
  1. Add the adapter to your next-auth config in pages/api/auth/[...nextauth].js. Add your DETA_PROJECT_KEY as an environment variable, then create a deta instance and pass it to the DetaAdapter.
import NextAuth from "next-auth";
import GithubProvider from "next-auth/providers/github";
import { DetaAdapter } from "next-auth-deta";
import { Deta } from "deta";

const deta = Deta(process.env.DETA_PROJECT_KEY);

export default NextAuth({
  adapter: DetaAdapter(deta),
  providers: [
    // add your providers here
    // https://next-auth.js.org/providers
  ],
  // more options
});

FAQs

Package last updated on 23 May 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