You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When wrapping components inside a custom <Authenticator>, auth events are correctly propagated to child components through props, except for 'signOut'
To Reproduce
Steps to reproduce the behavior:
const AlwaysOn = (props: any) => {
console.log('Always on ', props.authState)
return (
<div>
<div>I am always here to show current auth state: {props.authState}</div>
</div>
)
}
ReactDOM.render(
<Authenticator hideDefault={true}>
<AlwaysOn/>
<SignUp />
<SignIn />
<App />
</Authenticator>,
document.getElementById('root')
The AlwaysOn component does not correctly display the 'signOut' event
Expected behavior
A clear and concise description of what you expected to happen.
'signOut' event should be passed to child components