chore: use Session defined in auth-types

This commit is contained in:
javayhu 2025-05-01 21:55:11 +08:00
parent 4ef52c2c02
commit dd8b74b096
3 changed files with 2 additions and 4 deletions

View File

@ -1,3 +1,4 @@
import type { auth } from './auth';
// https://www.better-auth.com/docs/concepts/typescript#additional-fields
export type Session = typeof auth.$Infer.Session;

View File

@ -153,9 +153,6 @@ export const auth = betterAuth({
},
});
// https://www.better-auth.com/docs/concepts/typescript#additional-fields
export type Session = typeof auth.$Infer.Session;
/**
* Gets the locale from a request by parsing the cookies
* If no locale is found in the cookies, returns the default locale

View File

@ -1,6 +1,6 @@
import { getActiveSubscriptionAction } from '@/actions/get-active-subscription';
import { getLifetimeStatusAction } from '@/actions/get-lifetime-status';
import type { Session } from '@/lib/auth';
import type { Session } from '@/lib/auth-types';
import { getAllPricePlans } from '@/lib/price-plan';
import type { PricePlan, Subscription } from '@/payment/types';
import { create } from 'zustand';