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

Support for unprotected routes #1058

Closed
2 tasks
Shomari opened this issue Dec 29, 2021 · 1 comment
Closed
2 tasks

Support for unprotected routes #1058

Shomari opened this issue Dec 29, 2021 · 1 comment
Labels
Authenticator An issue or a feature-request for an Authenticator UI Component feature-request Request a new feature React An issue or a feature-request for React platform

Comments

@Shomari
Copy link

Shomari commented Dec 29, 2021

On which framework/platform would you like to see this feature implemented?

React

Which UI component is this feature-request for?

Authenticator

Please describe your feature-request in detail.

It would be nice to be able to simply pass in a list of routes that should be unprotected. These routes would not be redirected to the login flow and could proceed as normal. Currently, you have to come up with work around for routing if you want a home page to be unprotected but all other to be protected.

This is harder with the new version of the UI as you don't have the same access to authState as you did in the previous version where you could follow the docs https://docs.amplify.aws/ui/auth/authenticator/q/framework/react/#basic-usage to get the result you were looking for.

Please describe a solution you'd like.

Pass in a list of routes to Authenticator that would not be redirected

We love contributors! Is this something you'd be interested in working on?

  • 👋 I may be able to implement this feature request.
  • ⚠️ This feature might incur a breaking change.
@Shomari Shomari added the feature-request Request a new feature label Dec 29, 2021
@reesscot reesscot added React An issue or a feature-request for React platform Authenticator An issue or a feature-request for an Authenticator UI Component labels Dec 29, 2021
@wlee221 wlee221 added this to the useAuthenticator Hook milestone Jan 14, 2022
@Milan-Shah Milan-Shah added pending-triage Issue is pending triage and removed pending-triage Issue is pending triage labels Jan 31, 2022
@Milan-Shah
Copy link
Contributor

Milan-Shah commented Jan 31, 2022

@Shomari Thank you for creating a feature-request. We are currently working on our useAuthenticatorHook Milestone which includes passing in a list of routes to Authenticator that would not be redirected. We recently merged a PR to enable useAuthenticator usage outside of component. Please see here. Let us know if you have any questions or feedback :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Authenticator An issue or a feature-request for an Authenticator UI Component feature-request Request a new feature React An issue or a feature-request for React platform
Projects
None yet
Development

No branches or pull requests

4 participants