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

[ui-react] Authenticator component render children even if not signed in #6084

Closed
trungtin opened this issue Jun 14, 2020 · 2 comments
Closed
Labels
to-be-reproduced Used in order for Amplify to reproduce said issue

Comments

@trungtin
Copy link

Describe the bug
From reading the documentation and source of the Authenticator component I expect that it will only render the children if the user already signed in, but it not to be the case here.

To Reproduce

  1. with this source
const App = () => (
  <AmplifyAuthenticator usernameAlias="email">
    <div>
      <MyApp />
      <AmplifySignOut />
    </div>
  </AmplifyAuthenticator>
)

Expected behavior
I expect that MyApp should not be rendered (but it does, behind the SignIn form)

@trungtin trungtin added the to-be-reproduced Used in order for Amplify to reproduce said issue label Jun 14, 2020
@trungtin
Copy link
Author

duplicate #5547

@github-actions
Copy link

This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels or Discussions for those types of questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
to-be-reproduced Used in order for Amplify to reproduce said issue
Projects
None yet
Development

No branches or pull requests

1 participant