Skip to content

Commit

Permalink
fix verifyAdmin localhost domain
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiDubauskas committed Sep 5, 2023
1 parent e8d5ef4 commit 523d2b5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions firebase.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
// TODO: figure out the difference between above and below




const { initializeApp, cert } = require("firebase-admin/app");
const { getAuth } = require("firebase-admin/auth");
//const admin = require("firebase-admin");
Expand Down
2 changes: 1 addition & 1 deletion middleware/verifyAdmin.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const checkAdminStatus = async (uid, token) => {
console.log("checkAdmin function starting");
try {
const res = await fetch(
`http://localhost:3000/users?firebaseUID=${uid}`,
`https://hfc-backend-delta.vercel.app/users?firebaseUID=${uid}`,
{
headers: {
"Content-Type": "application/json",
Expand Down

1 comment on commit 523d2b5

@vercel
Copy link

@vercel vercel bot commented on 523d2b5 Sep 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.