Skip to content

Commit

Permalink
Added console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
BradyMitch committed Dec 27, 2023
1 parent b01b740 commit 31fdde1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/utils/token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,19 @@ export const retreiveToken = async () => {
grant_type: "client_credentials",
};

console.log(
`CSS_API_CLIENT_ID ${CSS_API_CLIENT_ID}, CSS_API_CLIENT_SECRET ${CSS_API_CLIENT_SECRET}`
);

const headers = {
Authorization: `Basic ${btoa(
`${CSS_API_CLIENT_ID}:${CSS_API_CLIENT_SECRET}`
)}`,
Accept: "application/json",
"Content-Type": "application/json",
};

console.log(`Authorization: ${headers.Authorization}`);

const response = await fetch(`${CSS_API_URL}/token`, {
method: "POST",
headers,
Expand Down

0 comments on commit 31fdde1

Please sign in to comment.