Skip to content
This repository has been archived by the owner on Dec 30, 2023. It is now read-only.

Latest commit

 

History

History
47 lines (40 loc) · 1.35 KB

admin.md

File metadata and controls

47 lines (40 loc) · 1.35 KB

Setup Admin

  • Auth page is used when sign in at the admin page.

Change following codes

auth/spotify/callback.html

// line 20
fetch('https://us-central1-music-shorts.cloudfunctions.net/api/auth/token/swap', 
// to 
fetch('[your server url]/auth/token/swap', 

admin/scripts/home.js & admin/scripts/sign-in.js

// line 1
const baseUrl = 'https://us-central1-music-shorts.cloudfunctions.net/api';
// to 
const baseUrl = '[your server url]';


Deploy

Auth

firebase deploy --only hosting:auth

Admin

firebase deploy --only hosting:admin

Upgrade user to admin

After sign in to admin and change current user's data like that image