More build fixes
This commit is contained in:
parent
8fabcbaba2
commit
67b9b3e20a
11 changed files with 34 additions and 53 deletions
|
|
@ -1,7 +1,5 @@
|
|||
/* eslint-disable unicorn/no-null,max-params */
|
||||
// @ts-nocheck
|
||||
import { createHash, randomBytes } from "node:crypto";
|
||||
import type { AdapterInstance } from "next-auth/adapters";
|
||||
import omit from "lodash/omit";
|
||||
import type { IMetamigoRepositories } from "../records";
|
||||
import type { UnsavedAccount } from "../records/account";
|
||||
|
|
@ -20,9 +18,7 @@ const getCompoundId = (providerId: any, providerAccountId: any) =>
|
|||
|
||||
const randomToken = () => randomBytes(32).toString("hex");
|
||||
|
||||
export class NextAuthAdapter<TRepositories extends IMetamigoRepositories>
|
||||
implements AdapterInstance<SavedUser, UnsavedUser, SavedSession>
|
||||
{
|
||||
export class NextAuthAdapter<TRepositories extends IMetamigoRepositories> {
|
||||
constructor(
|
||||
private repos: TRepositories,
|
||||
private readonly sessionMaxAge = defaultSessionMaxAge,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue