no deprecation on node16?
This commit is contained in:
@@ -3,7 +3,7 @@ import { hash as argon2Hash, verify as argon2Verify } from '@node-rs/argon2';
|
||||
import { kyselyAdapter } from '@better-auth/kysely-adapter';
|
||||
import { Kysely, PostgresDialect } from 'kysely';
|
||||
import { Pool } from 'pg';
|
||||
import { sendEmail, verificationEmailHtml, resetPasswordEmailHtml } from './email';
|
||||
import { sendEmail, verificationEmailHtml, resetPasswordEmailHtml } from './email.js';
|
||||
|
||||
const db = new Kysely({
|
||||
dialect: new PostgresDialect({
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import FormData from 'form-data';
|
||||
import Mailgun from 'mailgun.js';
|
||||
|
||||
const mailgun = new Mailgun(FormData);
|
||||
const mailgun = new (Mailgun as any)(FormData);
|
||||
const mg = mailgun.client({
|
||||
username: 'api',
|
||||
key: process.env.MAILGUN_API_KEY || '',
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Request, Response, NextFunction } from 'express';
|
||||
import { auth } from './auth';
|
||||
import { auth } from './auth.js';
|
||||
import { fromNodeHeaders } from 'better-auth/node';
|
||||
|
||||
declare global {
|
||||
|
||||
Reference in New Issue
Block a user