-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Hub(auth) is not firing, when logged on via refresh/existing cookie log on (working in v5 not working in v6) #12739
Comments
Hello, @myonara and sorry for the delayed response on this issue. The equivalent to Let me know if that helps clear things up or if there's a specific use case or context we can help with further! |
Sorry, just seen it now, thank you for the reminder. I will dig into the docs and code soon to clarify. |
So I have tested the hints, @cwomack has given. Now my code is working again. Here are my observations:
|
@myonara, glad to hear you're unblocked! I'll close this issue then for now, but feel free to reply back if you still experience this or feel free to open a new issue if there's anything else that you run in to. |
Before creating a new issue, please confirm:
On which framework/platform are you having an issue?
Angular
Which UI component?
Authenticator
How is your app built?
angular/amplify
What browsers are you seeing the problem on?
Chrome, Firefox
Which region are you seeing the problem in?
eu-central-1 / localhost execution
Please describe your bug.
In version 6 I'm getting events ob the hub-Channel "auth" for signedin and signedup, but getting no hub event, when I refresh the browser and have a valid auth cookie. In version 5 I'm getting signin events also, when I'm refreshing the browser with an auth cookie. Side question: Also I used Auth.currentSession in V5, which is missing in V6, is there a replacement for this?
What's the expected behaviour?
The hub-channel auth can get also re signed in events.
Help us reproduce the bug!
Just do a default project with auth in V6 and listen to the Hub-Auth-Channel during the steps of singing up/signing in and refresh browser after logged in.
Code Snippet
Console log output
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: