Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hydratation errors with the account button #425

Open
antho1404 opened this issue Sep 24, 2023 · 0 comments
Open

Hydratation errors with the account button #425

antho1404 opened this issue Sep 24, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@antho1404
Copy link
Member

antho1404 commented Sep 24, 2023

When the user clears the cookies or disconnect the wallet, the server can't detect correctly if both wallets are connected, and jwt is present, so the server returns a different version than the clients (who can properly check if the wallet is connected)

This hydratation error happens on the navbar with the login button.

Example 1:

  • User logins correctly (connect + sign)
  • User deletes the cookies
  • User refreshes the page > Hydratation issue because the server thinks that the user is not connected because there is no jwt

Example 2:

  • User logins correctly (connect + sign)
  • User disconnects the wallet
  • User refreshes the page > Hydratation issue because the server thinks that the user is connected because the jwt is valid
@antho1404 antho1404 added the bug Something isn't working label Sep 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant