fix: get access token from headers
This commit is contained in:
@@ -1,14 +1,21 @@
|
||||
import { cookies, headers } from "next/headers"
|
||||
|
||||
import { serverClient } from "@/lib/trpc/server"
|
||||
|
||||
import type { Metadata } from "next"
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Hello World from Webview",
|
||||
}
|
||||
|
||||
export default function WebViewTestPage() {
|
||||
export default async function WebViewTestPage() {
|
||||
const data = await serverClient().user.get()
|
||||
|
||||
return (
|
||||
<main>
|
||||
<header>
|
||||
<h1>Hello From WebView Test Page!</h1>
|
||||
<p>{data.firstName}</p>
|
||||
</header>
|
||||
</main>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user