fathomnet / community-feedback

0 stars 0 forks source link

Firebase authentication is failing on dashboard #144

Open kevinsbarnard opened 7 months ago

kevinsbarnard commented 7 months ago

When navigating to the dashboard page (any tab), the web UI is failing to authenticate at the https://fathomnet.org/api/firebase/auth endpoint. See in the screenshot below, it is passing null in for the bearer token, which causes an 500 response. This causes all subsequent authenticated requests to fail. Tested on latest Firefox and Chrome with no extensions.

Screenshot from 2023-11-27 09-57-18

@ermbutler Do you by chance have any time to look into this?

kevinsbarnard commented 7 months ago

Possibly related: in the "People" admin view (AccountPeople.vue), the showDetails/editDetails functions fail, so the relevant dialog UI is never opened. I got as far as figuring out that the buildUserExt function was never called on the user objects... maybe loadPeople isn't being called due to the authentication error?

image

ermbutler commented 6 months ago

Hi @kevinsbarnard -- I took a look around, and I made a few edits and that seems to help stop this particular 500 error from happening. The change is related to some code on the Account template which was carried over from Collections view (which is now a component) so I co-located that code into the component and that seems to help.

Here is the branch: https://github.com/fathomnet/fathomnet-web-ui/tree/dev/issue_144

kevinsbarnard commented 4 months ago

Testing and will merge in soon