diff --git a/src/lib/auth-types.ts b/src/lib/auth-types.ts index 76f6b12..745279f 100644 --- a/src/lib/auth-types.ts +++ b/src/lib/auth-types.ts @@ -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; diff --git a/src/lib/auth.ts b/src/lib/auth.ts index b411c79..ff1edca 100644 --- a/src/lib/auth.ts +++ b/src/lib/auth.ts @@ -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 diff --git a/src/stores/payment-store.ts b/src/stores/payment-store.ts index 70b07c6..f2b11c6 100644 --- a/src/stores/payment-store.ts +++ b/src/stores/payment-store.ts @@ -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';