chore: use Session defined in auth-types
This commit is contained in:
parent
4ef52c2c02
commit
dd8b74b096
@ -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;
|
||||
|
@ -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
|
||||
|
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user