imls-dmt / userinterface

User Interface for DMT Clearinghouse.
Apache License 2.0
0 stars 1 forks source link

handle case where user does not log out before closing app tab #29

Closed karlbenedict closed 1 year ago

karlbenedict commented 2 years ago

Groups in newly opened application tab/refreshed application interface should have username and groups aligned with desired state - logout to unauthenticated state, or restore to user and groups reported by api.

karlbenedict commented 1 year ago

Resolved with commit https://github.com/imls-dmt/userinterface/commit/a5d67273226e14e41bb47f88a417087e59b634c0

Ultimately set up call to /api/user/groups route that responds with an empty groups element if not authenticated, and a groups element that contains one or more elements if the user is logged in. The user interface elements and underlying state are updated to reflect this status when the application loads.