Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update "set admin user" script instructions #45

Closed
mouneyrac opened this issue Jan 29, 2023 · 0 comments
Closed

Update "set admin user" script instructions #45

mouneyrac opened this issue Jan 29, 2023 · 0 comments

Comments

@mouneyrac
Copy link
Contributor

The instructions to set up the admin user (https://docs.rowy.io/how-to/roles?set-user-roles-tabs=admin-sdk#set-user-roles-tabs) are a little time consuming as they mix import and require syntax. It makes setting up this mini project difficult.

As it is just a simple node script, not requiring modules, then the developer should just edit some constant in set-user-roles.js and then run:

yarn add firebase-admin
node ./set-user-roles.js

Currently the script produce errors with modules not supported, require not working, export not usable - all depending on how you decide to set your project.

PS: I am writing this issue to match a PR I am going to push.

mouneyrac added a commit to mouneyrac/rowy-docs that referenced this issue Jan 29, 2023
Update the "set admin user" node script to run as a simple node script.
shamsmosowi added a commit that referenced this issue Apr 9, 2023
…uctions

#45 Update roles.mdx - set admin user instructions
@bofeiw bofeiw closed this as completed May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants