Forum Academy Marketplace Showcase Pricing Features

Spotify connect - using the player

@vnihoul77 I’ve started using your plugin. I’d like to use the spotify player. The spotify docs say to add
</script src=“”><//script>
and then to add (I put this in script tag)
window.onSpotifyWebPlaybackSDKReady = () => {
const token = ‘[My access token]’;
const player = new Spotify.Player({
name: ‘Web Playback SDK Quick Start Player’,
getOAuthToken: cb => { cb(token); },
volume: 0.5
However, how would I access the logged in users’ access token to send?

This topic was automatically closed after 70 days. New replies are no longer allowed.