♻️ Upgrade to next-auth v5 (#1558)

This commit is contained in:
Luke Vella 2025-02-12 12:51:04 +07:00 committed by GitHub
parent 17d386d905
commit 4b26dc50b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
53 changed files with 765 additions and 628 deletions

View file

@ -1,5 +1,6 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import type { TimeFormat } from "@rallly/database";
import type { NextRequest } from "next/server";
import type { DefaultSession, DefaultUser } from "next-auth";
import NextAuth from "next-auth";
import type { DefaultJWT } from "next-auth/jwt";
@ -25,6 +26,10 @@ declare module "next-auth" {
timeFormat?: TimeFormat | null;
weekStart?: number | null;
}
interface NextAuthRequest extends NextRequest {
auth: Session | null;
}
}
declare module "next-auth/jwt" {