mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2025-01-15 05:10:15 +00:00
19 lines
307 B
TypeScript
19 lines
307 B
TypeScript
import NextAuth, { DefaultSession } from "next-auth";
|
|
|
|
type TA_token = {
|
|
token: string;
|
|
user_id: number;
|
|
};
|
|
|
|
declare module "next-auth" {
|
|
interface Session {
|
|
ta_token: TA_token & DefaultSession["user"];
|
|
}
|
|
}
|
|
|
|
declare module "next-auth/jwt" {
|
|
interface JWT {
|
|
ta_token: TA_token & JWT;
|
|
}
|
|
}
|