Skip to content

Commit

Permalink
fix: add auth token on request to api
Browse files Browse the repository at this point in the history
  • Loading branch information
Guilhermeasper committed Aug 31, 2023
1 parent 3073713 commit 17ca0cf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/services/marquinhosApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ export class MarquinhosApiService {
const options = {
method: 'POST',
url: `${process.env.MARQUINHOS_API_URL}/api/scrobble/queue`,
headers: { 'Content-Type': 'application/json' },
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${process.env.MARQUINHOS_API_TOKEN}`,
},
data: {
playbackData,
},
Expand Down

0 comments on commit 17ca0cf

Please sign in to comment.