create-better-t-stack 3.0.7 → 3.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -2,6 +2,7 @@ import { redirect } from "next/navigation";
|
|
|
2
2
|
import Dashboard from "./dashboard";
|
|
3
3
|
import { headers } from "next/headers";
|
|
4
4
|
import { auth } from "@{{projectName}}/auth";
|
|
5
|
+
import { authClient } from "@/lib/auth-client";
|
|
5
6
|
|
|
6
7
|
export default async function DashboardPage() {
|
|
7
8
|
const session = await auth.api.getSession({
|
|
@@ -13,8 +14,10 @@ export default async function DashboardPage() {
|
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
{{#if (eq payments "polar")}}
|
|
16
|
-
const { data: customerState } = await
|
|
17
|
-
|
|
17
|
+
const { data: customerState } = await authClient.customer.state({
|
|
18
|
+
fetchOptions: {
|
|
19
|
+
headers: await headers(),
|
|
20
|
+
},
|
|
18
21
|
});
|
|
19
22
|
{{/if}}
|
|
20
23
|
|