Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View najibla's full-sized avatar

Najib Laaziz najibla

  • Tieto Oy
  • Helsinki, Finland
View GitHub Profile

With Express, I am doing the following

export async function fetchData(token: any, body: any) {
  const result = await fetch(
    `${config.apiUrl}/${config.projectKey}/my-request`,
    {
      method: 'POST',
      headers: {
        Authorization: token,
      },