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

[gen2 docs] Subscribe demo stops working with Implement per-user authorization #8223

Open
rhamnett opened this issue Jan 28, 2025 · 0 comments

Comments

@rhamnett
Copy link

rhamnett commented Jan 28, 2025

Describe the content issue:

Hello. When following 9. Implement per-user authorization the subscription never updates the items once they are added using the allow.owner() below. If you refresh the page, the items show, so they have definitely been added to the data store.

  }).authorization(allow => [allow.owner()]),

If you change it to the below, the subscription works.

    .authorization((allow) => [allow.authenticated()])

I am not sure what needs to be added/fixed to get this to work but the example in the documentation seems broken.

(https://github.com/aws-amplify/docs/blob/main/src/pages/%5Bplatform%5D/start/quickstart/nextjs-pages-router/index.mdx)

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