If the UI has an invalid token, and you go to to My Workflows, My Tools, or My Account, the pages come up, but without the important content, e.g., no workflows, no tools, no profile info, etc.
Also the button at the top right is in a funny state; it has blank text.
The UI should instead redirect to you to the sign in page if you go to one of those pages, and button at the top right should say Login/Register.
This is fix would mainly be a local dev nicety, as when I reinitialize my local database, my previously issued token becomes invalid. But if we revoke a token, it would become an issue there as well.
┆Issue is synchronized with this Jira Bug
┆Fix Versions: Dockstore 2.X
┆Issue Number: DOCK-247
┆Sprint: Backlog
┆Issue Type: Bug
Can simulate when restoring a different database
Could use same mechanism as https://github.com/dockstore/dockstore-ui2/pull/740
➤ Charles Overbeck commented:
Also see SEAB-333
Relates to #3361, perhaps.
You can manually "invalidate" your token by logging in, changing your token's value in your browser's LocalStorage, and then refreshing.