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

Newly-registered users may have to sign in twice (or just refresh?) for notifications service to work #8

Open
athewsey opened this issue Mar 27, 2021 · 0 comments

Comments

@athewsey
Copy link
Collaborator

Each user needs the appropriate IoT policy attached to their Cognito identity to have access to the notifications service...

However the only hooks available to us are on Cognito user (currently using PostAuthenticated) - and the identity is created after the user logs in.

So the app currently makes a best-effort attempt to attach the policy to the Cognito Identity, but it could fail or the timing could work out wrong when first registering & logging in - resulting in the user having to refresh the page, or maybe even log out and in again, for their IoT (PubSub notifications) permissions to get set up.

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

No branches or pull requests

1 participant