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

Customise SignIn to have additional components #4614

Open
2 tasks
psambit9791 opened this issue Oct 31, 2023 · 2 comments
Open
2 tasks

Customise SignIn to have additional components #4614

psambit9791 opened this issue Oct 31, 2023 · 2 comments
Labels
Authenticator An issue or a feature-request for an Authenticator UI Component feature-request Request a new feature

Comments

@psambit9791
Copy link

psambit9791 commented Oct 31, 2023

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.

Ability to Customise the SignIn component, similar to how we can customise the SignUp component with checkboxes etc. as shown here: Example

components={{
        SignUp: {
          FormFields() {
            const { validationErrors } = useAuthenticator();

            return (
              <>
                {/* Re-use default `Authenticator.SignUp.FormFields` */}
                <Authenticator.SignUp.FormFields />

                {/* Append & require Terms & Conditions field to sign up  */}
                <CheckboxField
                  errorMessage={validationErrors.acknowledgement as string}
                  hasError={!!validationErrors.acknowledgement}
                  name="acknowledgement"
                  value="yes"
                  label="I agree with the Terms & Conditions"
                />
              </>
            );
          },
        },
      }}

Please describe a solution you'd like.

I was wondering if something similar can also be allowed for the SignIn. The use case is to ensure the users are validating each time they are signing in. Or something like a 'Remember Me' option when signing in which can be handles in a validateCustomSignIn() function.

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.
@psambit9791 psambit9791 added the feature-request Request a new feature label Oct 31, 2023
@github-actions github-actions bot added the pending-triage Issue is pending triage label Oct 31, 2023
@reesscot reesscot added Authenticator An issue or a feature-request for an Authenticator UI Component and removed pending-triage Issue is pending triage labels Oct 31, 2023
@reesscot
Copy link
Contributor

@psambit9791 Thank you for your feature request! We are actually working on making the Authenticator more customizable and will post an update here when it becomes available.

@psambit9791
Copy link
Author

psambit9791 commented Nov 1, 2023

@reesscot That's amazing! I would like to try and contribute to this development as well. Is there any way to identify what features are being worked on; and if this specific feature has already had any development on it yet?

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
Projects
None yet
Development

No branches or pull requests

2 participants