diff --git a/www/apps/api-reference/markdown/admin.mdx b/www/apps/api-reference/markdown/admin.mdx index 10b670564cdb3..2dae3f5b067ad 100644 --- a/www/apps/api-reference/markdown/admin.mdx +++ b/www/apps/api-reference/markdown/admin.mdx @@ -200,7 +200,7 @@ When using the JS SDK, you only need to specify the API key token in the [config ```js fetch(`{backend_url}/admin/products`, { headers: { - Authorization: `Basic ${window.btoa(`:${api_key_token}`)}`, + Authorization: `Basic ${window.btoa(`${api_key_token}:`)}`, }, }) ``` @@ -212,7 +212,7 @@ fetch(`{backend_url}/admin/products`, { fetch(`{backend_url}/admin/products`, { headers: { Authorization: `Basic ${ - Buffer.from(`:${api_key_token}`).toString("base64") + Buffer.from(`${api_key_token}:`).toString("base64") }`, }, })