mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-05 20:21:50 +02:00
♻️ Upgrade to next-auth v5 (#1558)
This commit is contained in:
parent
17d386d905
commit
4b26dc50b3
53 changed files with 765 additions and 628 deletions
5
apps/web/declarations/next-auth.d.ts
vendored
5
apps/web/declarations/next-auth.d.ts
vendored
|
@ -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" {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue