Auth page customizations not used when signOut called if user was auto-signed in when starting browser #4818
Closed
4 tasks done
Labels
Authenticator
An issue or a feature-request for an Authenticator UI Component
bug
Something isn't working
Before creating a new issue, please confirm:
On which framework/platform are you having an issue?
React
Which UI component?
Authenticator
How is your app built?
Create React App/Webpack 5
What browsers are you seeing the problem on?
Chrome, Safari
Which region are you seeing the problem in?
us-east-1
Please describe your bug.
I am using the Authenticator component with customizations by using the properties formFields, components, and services. If the user is logged in and closes the browser, and then reopens it, they are automatically logged in and the Sign In form does not appear, as expected. If they click the Sign Out button, my code calls the signOut function supplied by Authenticator. Now the Sign In form appears, but my customizations are not rendered. Specifically, the overrides in formFields are not represented, and the handleSignIn service override is not invoked when the Sign In button is clicked.
What's the expected behaviour?
The Sign In form that is displayed should be using the customizations. Everything works correctly if the user is not signed in before opening the browser. In that situation, the Sign In form is displayed with my customizations. After signing in, if the user clicks the Sign Out button, the Sign In form is displayed again with the correct customizations.
Help us reproduce the bug!
Include the Authenticator in a React app, passing formFields, components and services. In formFields, I use placeholders and hide the labels so it is obvious when the form is displayed. Run the app (webpaclk dev server?) and follow these steps:
Code Snippet
Console log output
No console output is produced
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: