Skip to main content

Sign In with Spotify

Follow this guide to sign in users with Spotify.

Spotify Sign In Preview

Create Spotify Account

Create Spotify App

Configure OAuth Callback URL

  • Click EDIT SETTINGS.
  • A modal appears.
  • Fill in Redirect URIs with your OAuth Callback URL from Nhost.
  • Click ADD to add the OAuth callback URL.
  • Click SAVE.

Configure Nhost

  • Click SHOW CLIENT SECRET in the Spotify App Dashboard.
  • Copy and paste the Client ID and Client Secret from Spotify to your Nhost OAuth settings for Spotify.
  • Click the checkbox “I have pasted the redirect URI into Spotify”.
  • Click Confirm settings.

Sign In Users

Use the Nhost JavaScript client to sign in users:

nhost.auth.signIn({
provider: 'spotify'
})