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

No sense of an admin user #10

Open
ghostlandr opened this issue Feb 28, 2017 · 0 comments
Open

No sense of an admin user #10

ghostlandr opened this issue Feb 28, 2017 · 0 comments

Comments

@ghostlandr
Copy link
Collaborator

Everyone can edit/add songs right now. This probably isn't a big deal, but later on down the line it probably makes sense to have some things that only admins can do (deleting songs might be one?). I was thinking about a flow where when the user logs in for the first time or comes back they get a JWT right? Well part of the JWT could now be isAdmin: true|false, then whenever they reload the page completely (i.e. the app reloads, not switching pages within the app) it could check their local storage JWT against what is true on the server and it could do something fun to them if they've modified their JWT to get extra permissions.

Just an idea I had last night anyway.

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

1 participant