r/CodingHelp • • Aug 17 '25

[Javascript] need help figuring out Spotify authentication token

I'm learning about api need to get auth for my terminal so I can follow this guys guide but every time I copy the code its says 401 message invalid access token

1 Upvotes

3 comments sorted by

View all comments

Show parent comment

1

u/DreamerToTheEnd Aug 17 '25

I'm assuming you are including the token in your header like this:

"Authorization: Bearer {token}"

If so, are you sure you copied the entire token?