fission-codes / dashboard

The account dashboard for the Fission platform
https://dashboard.fission.codes
GNU Affero General Public License v3.0
8 stars 0 forks source link

Dashboard login not working #35

Open alanshaw opened 3 years ago

alanshaw commented 3 years ago

Summary

Problem

Cannot login to the dahsboard

Impact

Cannot use fission

Solution

?

Detail

Screenshot 2021-09-22 at 14 59 19
Error in webnative initialisation SyntaxError: JSON.parse: unexpected character at line 1 column 2 of the JSON data
    HH index.ts:340
    i5 index.ts:142
    async* index.ts:176
    <anonymous> index.ts:472
index.ts:200:12
    <anonymous> index.ts:200
    (Async: promise callback)
    <anonymous> index.ts:199
    <anonymous> index.ts:472

To Reproduce Go through the sign up process on https://fission.codes/

Expected behavior Get logged in

Desktop (please complete the following information):

github-actions[bot] commented 3 years ago

Thank you for submitting an issue! It means a lot that you took the time -- it helps us be better 🙏

bmann commented 3 years ago

Hi @alanshaw -- it looks like this is a current incompatibility with Firefox and our usage of localStorage. Can you give it a go in Chrome, please.

matheus23 commented 3 years ago

Thanks for submitting this.

We've seen this issue with users who are using extensions. Most of our users are seeing this with Metamask enabled. We've had a fix for that in our staging infra for a while now. Its now on production, please try it again!

mbjones commented 2 years ago

@matheus23 FYI, I just ran into the same error and screenshot as the OP, and I was unable to log into the Dashboard on firefox:

OS: MacOS 11.6.6 Browser: Firefox 106.0.3

I tried this several times (x3, closing the tab each time), and each time it would ask me to authenticate, then ask to grant the Dashboard full access, which would lead to failure and the same screenshot shown above. However, I left the tab open, and after confirming that my ad blockers and other extensions weren't blocking anything (they all reported 0 blocks, I changed nothing), I reloaded the Dashboard page, and everything worked. I'm not sure what was up, but thought the 'reload' of the tab might provide you a piece of info. Happy to help debug if you want me to try to recreate it again.

matheus23 commented 2 years ago

Thanks @mbjones, I really appreciate the experience report. Dashboard <-> Auth Lobby ... login? Sync? Connect? However you may call it, relies on cross-origin communication at the moment. Unfortunately browsers (and most aggresively Firefox) are starting to implement heuristics for when cross-origin communication is allowed for websites. It may be that by having the site sit around for a while, Firefox assumed you'd "trust" the site more, and thus allowed cross-origin communication for you between the dashboard and auth lobby.