2024-02-02 11:35:09 +00:00
|
|
|
import NextAuth from "next-auth";
|
|
|
|
|
|
|
|
declare module "next-auth" {
|
|
|
|
interface Session {
|
|
|
|
refresh_token: string;
|
|
|
|
access_token: string;
|
2024-03-15 20:19:33 +00:00
|
|
|
expires_in: Date;
|
2024-02-29 08:09:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
interface User {
|
|
|
|
refresh_token: string;
|
|
|
|
access_token: string;
|
2024-03-15 20:19:33 +00:00
|
|
|
expires_in: Date;
|
2024-02-02 11:35:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
import { JWT } from "next-auth/jwt";
|
|
|
|
|
|
|
|
declare module "next-auth/jwt" {
|
|
|
|
interface JWT {
|
|
|
|
refresh_token: string;
|
|
|
|
access_token: string;
|
2024-03-15 20:19:33 +00:00
|
|
|
expires_in: Date;
|
2024-02-02 11:35:09 +00:00
|
|
|
}
|
|
|
|
}
|