kriasoft / react-firebase-starter

Boilerplate (seed) project for creating web apps with React.js, GraphQL.js and Relay

Home Page:https://firebase.reactstarter.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Admin Access

dbhurley opened this issue · comments

commented

I'm sorry for the newb question. I see the /admin routes and admin folder with extended functionality but can't seem to access the admin interface in any way. I also noticed I have to use a social sign-on to be able to access, and yet there's JWT and user profiles in the code. What am I doing wrong?

"message": "Anonymous access is denied.",

Same issue for me here

query User {
 users {
   edges {
     node {
       id
     }
   }
 }
}

@vashisth00 the users top-level query field is set to be accessed by admin users only, you can disable it here:

// Only admins are allowed to fetch the list of users
ctx.ensureIsAuthorized(user => user.isAdmin);
const query = db.table('users');
****