#✅ - Guest authentication
5 messages · Page 1 of 1 (latest)
Hi @still sleet , what kind of resources do you mean to grant access to?
There are configurable authorization rules for Data and Storage but maybe you mean some other kind of resources.
Data auth rules
https://docs.amplify.aws/react/build-a-backend/data/customize-authz/
Storage auth rules
https://docs.amplify.aws/react/build-a-backend/storage/authorization/
Rather than backend resources, I’d like to grant access to front end functionalities. It seems like anything wrapped in the Authenticator requires an authentication. And if I want to work withreactor router, I need to find creative ways to include the Authenticator in specific routes. Because in general, react router expects First children of the router to be route components
I believe you can simply use the useAuthenticator hook to check a user's authenticated status anywhere in your component tree
https://ui.docs.amplify.aws/react/connected-components/authenticator/advanced#useauthenticator-hook
✅ - Guest authentication