dieterich-lab / scimodom

Sci- ModoM: A quantitative database of transcriptome-wide high-throughput RNA modification sites
https://dieterich-lab.github.io/scimodom/
GNU Affero General Public License v3.0
0 stars 0 forks source link

Error on refresh when viewing a secure page #110

Closed eboileau closed 4 months ago

eboileau commented 5 months ago

A clear and concise description of what the bug is.

When viewing one of "Project template", "Dataset upload", or "Settings", I am logged out on page refresh, and a login dialog pops-in. This is the expected behavior, but this throws console errors.

  1. Log in, go to any of the page above.
  2. Refresh (inactivity would probably result in the same behavior).

This should be done in a cleaner way, to avoid console errors.

Output or error messages.

on_refresh

This is where it happens

# Settings
http://127.0.0.1:5000/api/v0/user/get_username
# Dataset upload
http://127.0.0.1:5000/api/v0/dataset/list_mine
# Project template
http://127.0.0.1:5000/api/v0/project/list_mine

Additional context

No response

What browser were you using?

Firefox, Chrome

What version of Sci-ModoM were you using?

dev