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

Fix clientId mismatch on login #38

Merged
merged 15 commits into from
Jul 15, 2024
Merged

Conversation

sacOO7
Copy link
Collaborator

@sacOO7 sacOO7 commented Jul 9, 2024

sacOO7 added 10 commits July 9, 2024 17:54
1.Moved onClientIdChanged method to auth
2.Added method allowReconnectOnUserLogin that tracks failed connection state due to
user login and calls onClientIdChanged. It is initilized in ablyConnector.
3.Updated onClientIdChanged implementation to reconnect on existing client and
re-attach failed channels
…dCallback

will be executed only once for clientId change
1. Sets passed authorize implementation as a channel property
2. Same property will be reused for auth on next Echo instance
@sacOO7 sacOO7 marked this pull request as ready for review July 13, 2024 15:06
@sacOO7 sacOO7 requested a review from ttypic July 15, 2024 07:14
@sacOO7 sacOO7 merged commit 19b492a into master Jul 15, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue with client ID when using SPA like inertia
2 participants