File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
apps/cli/templates/auth/better-auth/web/react/next/src/app/dashboard Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { redirect } from "next/navigation";
22import Dashboard from "./dashboard";
33import { headers } from "next/headers";
44import { auth } from "@{{ projectName }} /auth";
5+ import { authClient } from "@/lib/auth-client";
56
67export default async function DashboardPage() {
78 const session = await auth.api.getSession({
@@ -13,8 +14,10 @@ export default async function DashboardPage() {
1314 }
1415
1516 {{ #if (eq payments " polar" )}}
16- const { data: customerState } = await auth.api.customer.state({
17- headers: await headers(),
17+ const { data: customerState } = await authClient.customer.state({
18+ fetchOptions: {
19+ headers: await headers(),
20+ },
1821 });
1922 {{ /if }}
2023
You can’t perform that action at this time.
0 commit comments