mirror of
https://github.com/vercel/commerce.git
synced 2025-05-19 07:56:59 +00:00
20 lines
534 B
TypeScript
20 lines
534 B
TypeScript
import { getCustomer } from 'lib/shopify';
|
|
import { cookies } from 'next/headers';
|
|
import SignOutSection from './component/sign-out-section';
|
|
|
|
async function AccountPage({ searchParams }: { searchParams: { [key: string]: string } }) {
|
|
const token = cookies().get('customerAccessToken')?.value as string;
|
|
const customer = await getCustomer(token);
|
|
console.log('customer', customer);
|
|
console.log('token', token);
|
|
|
|
return (
|
|
<div>
|
|
<SignOutSection />
|
|
Account Detail
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default AccountPage;
|