oliveroneill / firebase-spotify-auth-example

Firebase custom auth with Spotify

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Firebase custom auth with Spotify

License:MIT License


Languages

Language:HTML 93.1%Language:JavaScript 6.9%