shopstr icon indicating copy to clipboard operation
shopstr copied to clipboard

[BUG] Logged out after reloading the empty messages page

Open knorrium opened this issue 6 months ago • 4 comments

  1. Login using nos2x
  2. Go to the orders page
  3. Click on the reload button

The account will get logged out and the state is lost.

This might have caused the broken state that led to #153

knorrium avatar Jun 12 '25 22:06 knorrium

From testing on my end, it's not that the user is completely signed out, the profile just takes some time to load. If you wait for long enough, does the profile icon not appear in the top right?

calvadev avatar Jun 13 '25 15:06 calvadev

@calvadev I get completely logged out. The page gets stuck on the spinner and the profile icon never shows up, it goes back to Sign in

I noticed that the local storage no longer has some keys after reloading.

Before hitting the reload button:

Image
{"tokens":"[]","readRelays":"[]","wot":"3","relays":"[\\"wss://eden.nostr.land\\",\\"wss://nos.lol\\",\\"wss://nostr.wine\\",\\"wss://premium.primal.net\\",\\"wss://relay.damus.io\\",\\"wss://relay.primal.net\\"]","signer":"{\\"type\\":\\"nip07\\"}","history":"[]","blossomServers":"[\\"https://cdn.nostrcheck.me\\"]","mints":"[\\"https://mint.minibits.cash/Bitcoin\\"]","cart":"[]","writeRelays":"[]"}

After hitting the reload button:

Image
{"blossomServers":"[\\"https://cdn.nostrcheck.me\\"]","tokens":"[]","mints":"[\\"https://mint.minibits.cash/Bitcoin\\"]","cart":"[]","relays":"[\\"wss://relay.damus.io\\",\\"wss://nos.lol\\",\\"wss://purplepag.es\\",\\"wss://relay.primal.net\\",\\"wss://relay.nostr.band\\"]","history":"[]"}

knorrium avatar Jun 13 '25 19:06 knorrium

Ok, haven't run into this yet. What browser and sign in method do you use?

calvadev avatar Jun 14 '25 00:06 calvadev

@calvadev tried both Chrome and Brave on macOS, using the latest nos2x extension to log in.

knorrium avatar Jun 14 '25 01:06 knorrium