Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 601 Bytes

File metadata and controls

25 lines (21 loc) · 601 Bytes

Firebase Custom Authentication Example using Spotify

A simple example of using Spotify as the auth provider for Firebase. Your Spotify username will be stored as a user in Firebase.

Installation

Create a file called config.js in public/. This should define firebase and spotify configuration as follows:

const firebaseConfig = {
  apiKey: "<ENTER-API-KEY>",
  authDomain: "<ENTER-AUTH-DOMAIN>",
  projectId: "<ENTER-PROJECT-ID>",
};

const spotifyConfig = {
  clientId: '<ENTER-CLIENT-ID>',
  redirectUri: '<ENTER-CALLBACK-URI>',
};

Deploy

firebase deploy