2
votes

How can i to convert this: new Buffer(client_id + ':' + client_secret).toString('base64')

to Angular?

I need de access token but doesn't work.

Docs: https://developer.spotify.com/web-api/authorization-guide/

1
same issue here, :( - Chaos

1 Answers

0
votes

You can convert it by passing it through the btoa() method. For example:

btoa(client_id + ':' + client_secret)