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

[BUG] Login flow broke after FCL update to latest version (1.7.0) #1805

Closed
cybercent opened this issue Nov 8, 2023 · 1 comment
Closed
Labels
Bug Something isn't working

Comments

@cybercent
Copy link
Contributor

Current Behavior

We upgraded FCL from 1.6 to 1.7.0 and users can't login anymore.
It appears that the logged state that is persisted in the CURRENT_USER variable in the local storage is not read by FCL.

Expected Behavior

Login flow should work.

Steps To Reproduce

  • Use FCL 1.7.0
  • Create a site that would display a login button when the user is not connected or his address when the user is connected
  • When clicking on the button the user should be asked to login with their wallet
  • Observe local storage and check that CURRENT_USER is not set
  • Click on the button and authenticate with a wallet
  • Observe local storage and check that CURRENT_USER is set
  • Expected: Reload website and the user should see his address
  • Actual: Reload website and the user sees the login button as FCL didn't read the CURRENT_USER variable

Environment

- OS:
- Node:
- npm:

What are you currently working on that this is blocking?

No response

@cybercent cybercent added the Bug Something isn't working label Nov 8, 2023
@cybercent
Copy link
Contributor Author

Closing. We found the issue.

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