developmentseed / developmentseed/observe-dashboard

How to update admin status of logged users?

Open
#34 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
6
Forks
1
PR merge metrics
No merged PRs in 30d

Description

There are elements at the UI that change when user is an admin. As the profile data is loaded only at the sign in, there is no way to update the user admin status without a new sign in.

A cheap solution would be fetching the user profile once in a while, but I would prefer a more "realtime" approach. Maybe including user's "updatedAt" timestamp in the response headers and firing a GET profile from the client when it's changed?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.