mirror of
https://github.com/vercel/commerce.git
synced 2025-05-18 07:26:59 +00:00
8 lines
249 B
TypeScript
8 lines
249 B
TypeScript
import { getCookie } from './cookies'
|
|
|
|
export default function getCredentials() {
|
|
const endpoint = process.env.NEXT_PUBLIC_COMMERCELAYER_ENDPOINT as string
|
|
const accessToken = getCookie('CL_TOKEN') as string
|
|
return { accessToken, endpoint }
|
|
}
|