feat: implement subscription (#92)

This commit is contained in:
Tianzhou (天舟)
2023-05-18 22:04:27 +08:00
committed by GitHub
parent 666e2091f6
commit b0b6caaffa
43 changed files with 1077 additions and 315 deletions

15
auth.d.ts vendored Normal file
View File

@ -0,0 +1,15 @@
import { Subscription } from "@/types";
import "next-auth";
declare module "next-auth" {
interface User {
id: string;
usage: number;
stripeId: number;
subscription: Subscription;
}
interface Session {
user: User;
}
}