Yoo i need some advice: I use this way to add a p...
# best-practices
p
Yoo i need some advice: I use this way to add a previously generated "Bearer" token to my requests:
Copy code
js
const request = {
    method: "POST",
    url: "example.org",
    headers: {
      Authorization: `Bearer ${token}`,
    },
}
Is there a better more cleaner way to add a Bearer token without string interpolation?