Learn how to write the Authorization header to pass the session-token
Authorization
const sessionToken = 'xxx'; fetch('https://api.example.com', { headers: {Authorization: `Bearer ${sessionToken}`} }) .then(console.log).catch(console.log);
Was this page helpful?