Skip to content

Instantly share code, notes, and snippets.

View kadlinobit's full-sized avatar

KadlinoBIT kadlinobit

  • Hradec Králové, Czech Republic
View GitHub Profile
import CredentialsProvider from 'next-auth/providers/credentials'
import { NuxtAuthHandler } from '#auth'
export default NuxtAuthHandler({
// secret needed to run nuxt-auth in production mode (used to encrypt data)
secret: useRuntimeConfig().authSecret,
providers: [
CredentialsProvider.default({
name: 'Directus',