All checks were successful
Trigger Cloudarix Deploy / call-webhook (push) Successful in 1s
- Remove unused NextAuthOptions import, use inferred types - Add 'as const' to session strategy - Add explicit callback parameter types with optional properties - Update Stripe API version to 2025-11-17.clover - Make Stripe and Resend initialization conditional for build time - Update next-auth.d.ts type declarations
27 lines
554 B
TypeScript
27 lines
554 B
TypeScript
import { DefaultSession, DefaultUser, AuthOptions } from "next-auth";
|
|
import { DefaultJWT } from "next-auth/jwt";
|
|
|
|
declare module "next-auth" {
|
|
interface Session {
|
|
user: DefaultSession["user"] & {
|
|
id: string;
|
|
tenantId?: string;
|
|
};
|
|
accessToken?: string;
|
|
}
|
|
|
|
interface User extends DefaultUser {
|
|
tenantId?: string;
|
|
}
|
|
|
|
// Re-export AuthOptions so it can be imported
|
|
export { AuthOptions };
|
|
}
|
|
|
|
declare module "next-auth/jwt" {
|
|
interface JWT extends DefaultJWT {
|
|
accessToken?: string;
|
|
tenantId?: string;
|
|
}
|
|
}
|