mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
@@ -4,7 +4,7 @@ import EmailProvider from 'next-auth/providers/email'
|
||||
import GitHubProvider from 'next-auth/providers/github'
|
||||
|
||||
import { MongoDBAdapter } from '@next-auth/mongodb-adapter'
|
||||
import { MONGODB_URI } from '../../../db'
|
||||
import { MONGO_URI } from '../../../db'
|
||||
import { MongoClient } from 'mongodb'
|
||||
|
||||
let client: MongoClient
|
||||
@@ -14,7 +14,7 @@ const GITHUB_USERS_GRANTED = ['111471']
|
||||
|
||||
async function getMongoClient() {
|
||||
if (!client) {
|
||||
client = new MongoClient(MONGODB_URI)
|
||||
client = new MongoClient(MONGO_URI)
|
||||
await client.connect()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user