More build fixes

This commit is contained in:
Darren Clarke 2023-05-26 08:27:16 +00:00
parent 8fabcbaba2
commit 67b9b3e20a
11 changed files with 34 additions and 53 deletions

View file

@ -1,7 +1,6 @@
/* eslint-disable unicorn/no-null */
import * as Joi from "joi";
import * as Hapi from "@hapi/hapi";
import { NextAuthPluginOptions } from "./types";
import { ResponseToolkit, ResponseObject } from "@hapi/hapi";
export interface LinkAccountPayload {
@ -14,9 +13,9 @@ export interface LinkAccountPayload {
accessTokenExpires?: null;
}
export const register = async <TUser, TProfile, TSession>(
export const register = async <TUser, TProfile>(
server: Hapi.Server,
opts: NextAuthPluginOptions<TUser, TProfile, TSession>,
opts: any,
auth?: string
): Promise<void> => {
const { tags, basePath, validators } = opts;