{"id":13805516,"url":"https://github.com/mzohaibqc/antd-amplify-react","last_synced_at":"2026-03-03T21:02:03.457Z","repository":{"id":57180568,"uuid":"150803771","full_name":"mzohaibqc/antd-amplify-react","owner":"mzohaibqc","description":"Ant Design components for Aws Amplify Auth flow. ","archived":false,"fork":false,"pushed_at":"2018-10-01T09:58:36.000Z","size":97,"stargazers_count":59,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-30T10:29:43.887Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mzohaibqc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-28T23:20:24.000Z","updated_at":"2024-05-31T00:26:46.000Z","dependencies_parsed_at":"2022-09-14T03:40:25.817Z","dependency_job_id":null,"html_url":"https://github.com/mzohaibqc/antd-amplify-react","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mzohaibqc/antd-amplify-react","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mzohaibqc%2Fantd-amplify-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mzohaibqc%2Fantd-amplify-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mzohaibqc%2Fantd-amplify-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mzohaibqc%2Fantd-amplify-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mzohaibqc","download_url":"https://codeload.github.com/mzohaibqc/antd-amplify-react/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mzohaibqc%2Fantd-amplify-react/sbom","scorecard":{"id":671806,"data":{"date":"2025-08-11","repo":{"name":"github.com/mzohaibqc/antd-amplify-react","commit":"cd93561c85160a6846434f1c9cd02b69f7be4645"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/7 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-21T20:20:53.306Z","repository_id":57180568,"created_at":"2025-08-21T20:20:53.307Z","updated_at":"2025-08-21T20:20:53.307Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30060632,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T18:21:05.932Z","status":"ssl_error","status_checked_at":"2026-03-03T18:20:59.341Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T01:01:01.932Z","updated_at":"2026-03-03T21:02:03.440Z","avatar_url":"https://github.com/mzohaibqc.png","language":"JavaScript","funding_links":[],"categories":["Components"],"sub_categories":["Themes"],"readme":"# antd-amplify-react\r\nThis is an Ant Design specific implementation of AWS Amplify React components for Authentication (`SignUp`, `ConfirmSignUp`, `SignIn`, `SignOut`, `RequireNewPassword`, `ForgotPassword`). You can use less and variables to style these components.\r\n\r\nIf you like this package and it helped you in any way, Star at [github](https://github.com/mzohaibqc/antd-amplify-react) ⭐ ⭐ ⭐\r\n\r\n### Install\r\n\u003e npm i -S antd-amplify-react\r\n\r\n### Usage\r\n\r\nThere are two components for each `kind of component`. One contains just `Form` and other contains the form component in `Card` container.\r\ne.g. there is a component `SignInForm` without any container and `SignIn` with Card container. If you want more hold on styling of your form outer container, user Form components inside your own containers. \r\n\r\nThere is a special component `AuthFlow` which contains all above mentioned components in a single container and it handles all authentication flows and changes UI according to auth state.\r\n\r\n\r\nHere are following components that you can use:\r\n  - **AuthFlow** - This component contains all components in tab view where you can switch components by clicking on tab navs or you can use radio buttons.\r\n  - **SignIn**: It's a sign in form contained in a Ant Design `Card` container\r\n  - **SignInForm**: It's a simple Ant Design form with username and password field. You can wrapp this in any container and apply styles of your choice \r\n  - **SignUp**: It's a sign up or registration form contained in a Ant Design `Card` container\r\n  - **SignUpForm**: It's a simple Ant Design form with username and password field. You can enable a confirm password field as well. Wrap this component in any container and apply styles of your choice\r\n  - **ConfirmSignUp**: This component will be rendered when Congnito will return a response with a challenge to confirm secret code sent to your email or phone number\r\n  - **ConfirmsignUpForm**: A form that contains username and (secret) code fields to verify that given email belongs to one trying to sign up\r\n  - **ResetPassword**: This component wrapps ResetPasswordForm in Ant Design `Card` and will be used to reset password and confirm change password flow.\r\n  - **ResetPasswordForm**: This forms contains username/email field and on submission it will change to confirm password form which will ask for  secret code that was sent to given email.\r\n  - **RequireNewPassword**: Youa are required to change your password if Admin created your account and set a temporary password for you. On Signing with temporary password, your will be redirected to this view\r\n  - **RequireNewPasswordForm**: This is a form component containing password field to update your password\r\n\r\n\u003chr /\u003e\r\n\r\n### AuthFlow\r\n\r\n```html\r\n\u003cAuthFlow  /\u003e\r\n```\r\n\r\n![AuthFlow](https://raw.githubusercontent.com/mzohaibqc/antd-amplify-react/master/images/authflow1.png?raw=true \"AuthFlow\")\r\n\r\n\r\n```html\r\n\u003cAuthFlow\r\n  tabPosition=\"top\"\r\n  signInFormProps={{\r\n    hideSignUpLink: true,\r\n    hideResetPasswordLink: true,\r\n    usernameInputProps: {\r\n      message: \"Invalid username!\"\r\n    }\r\n  }}\r\n/\u003e\r\n```\r\n![AuthFlow](https://raw.githubusercontent.com/mzohaibqc/antd-amplify-react/master/images/AuthFlow3.png?raw=true \"AuthFlow\")\r\n\r\n\r\n| Property    | Description                                                                                                            | Type   | Default                     |\r\n| ----------- | ---------------------------------------------------------------------------------------------------------------------- | ------ | --------------------------- |\r\n| tabPosition | Specify tab position                                                                                                   | string | `top`                      |\r\n| tabView     | In order to use tabs instead of radio group buttons (default view) for switching components                            | bool   | `false`                     |\r\n| colProps    | An object containing Col props to specify columns, offset etc. [See more](http://beta.ant.design/components/grid/#Col) | object | `{ xs: 24, sm: 12, md: 8 }` |\r\n\r\n\u003chr /\u003e\r\n\r\n### SignIn\r\n\r\n```\r\n\u003cSignIn /\u003e\r\n```\r\n\r\n![SignIn](https://raw.githubusercontent.com/mzohaibqc/antd-amplify-react/master/images/SignIn.png?raw=true \"SignIn\")\r\n\r\n\r\n| Property  | Description                                                                                                            | Type              | Default                     |\r\n| --------- | ---------------------------------------------------------------------------------------------------------------------- | ----------------- | --------------------------- |\r\n| title     | The label text displayed in Card title/header section.                                                                 | string\\|ReactNode | `Sign in to your account`   |\r\n| formProps | This is an object containing SignInForm props that you want to modify.                                                 | object            | `{}`                        |\r\n| colProps  | An object containing Col props to specify columns, offset etc. [See more](http://beta.ant.design/components/grid/#Col) | object            | `{ xs: 24, sm: 12, md: 8 }` |\r\n\r\n\u003chr /\u003e\r\n\r\n### SignInForm\r\n\r\n```html\r\n\u003cSignInForm /\u003e\r\n```\r\n\r\n| Property              | Description                                                  | Type   | Default                                                                                                            |\r\n| --------------------- | ------------------------------------------------------------ | ------ | ------------------------------------------------------------------------------------------------------------------ |\r\n| usernameInputProps    | username input field props                                   | object | `{ prefix: \u003cIcon type=\"user\" /\u003e, size: 'large', placeholder: 'Username', message: 'Please enter your username!' }` |\r\n| passwordInputProps    | password input field props                                   | object | `{ prefix: \u003cIcon type=\"lock\" /\u003e, size: 'large', placeholder: 'Password', message: 'Please enter your password!' }` |\r\n| buttonProps           | Submit button props                                          | object | `{ size: 'large', type: 'primary', label: 'Submit'}`                                                               |\r\n| hideSignUpLink        | In order to hide SignUp link in form, add this props.        | bool   | `false`                                                                                                            |\r\n| hideResetPasswordLink | In order to hide ResetPassword link in form, add this props. | bool   | `false`                                                                                                            |\r\n\r\n\r\n\u003chr /\u003e\r\n\r\n### SignUp\r\n\r\n```html\r\n\u003cSignUp /\u003e\r\n```\r\n\r\n![SignUp](https://raw.githubusercontent.com/mzohaibqc/antd-amplify-react/master/images/SignUp.png?raw=true \"SignUp\")\r\n\r\n| Property  | Description                                                                                                            | Type              | Default                     |\r\n| --------- | ---------------------------------------------------------------------------------------------------------------------- | ----------------- | --------------------------- |\r\n| title     | The label text displayed in Card title/header section.                                                                 | string\\|ReactNode | `Sign Up`                   |\r\n| formProps | This is an object containing SignInForm props that you want to modify.                                                 | object            | `{}`                        |\r\n| colProps  | An object containing Col props to specify columns, offset etc. [See more](http://beta.ant.design/components/grid/#Col) | object            | `{ xs: 24, sm: 12, md: 8 }` |\r\n\r\n\r\n\u003chr /\u003e\r\n\r\n### SignUpForm\r\n\r\n```html\r\n\u003cSignUpForm /\u003e\r\n```\r\n\r\n| Property                  | Description                                         | Type   | Default                                                                                                            |\r\n| ------------------------- | --------------------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------ |\r\n| usernameInputProps        | username input field props                          | object | `{ prefix: \u003cIcon type=\"user\" /\u003e, size: 'large', placeholder: 'Email', message: 'Please enter your email!'}`        |\r\n| passwordInputProps        | password input field props                          | object | `{ prefix: \u003cIcon type=\"lock\" /\u003e, size: 'large', placeholder: 'Password', message: 'Please enter your password!'}`  |\r\n| confirmPasswordInputProps | confirm password input field props                  | object | `{ prefix: \u003cIcon type=\"lock\" /\u003e, size: 'large', placeholder: 'Confirm', message: 'Please confirm your password!'}` |\r\n| buttonProps               | Submit button props                                 | object | `{ size: 'large', type: 'primary', label: 'Submit'}`                                                               |\r\n| confirmPassword           | In order to hide confirm password field, add false. | bool   | `true`                                                                                                             |\r\n\u003chr /\u003e\r\n\r\n\r\n### ConfirmSignUp\r\n\r\n```html\r\n\u003cConfirmSignUp /\u003e\r\n```\r\n\r\n![ConfirmSignUp](https://raw.githubusercontent.com/mzohaibqc/antd-amplify-react/master/images/ConfirmSignUp.png?raw=true \"ConfirmSignUp\")\r\n\r\n\r\n| Property  | Description                                                                                                            | Type              | Default                     |\r\n| --------- | ---------------------------------------------------------------------------------------------------------------------- | ----------------- | --------------------------- |\r\n| title     | The label text displayed in Card title/header section.                                                                 | string\\|ReactNode | `Confirm Sign Up`           |\r\n| formProps | This is an object containing SignInForm props that you want to modify.                                                 | object            | `{}`                        |\r\n| colProps  | An object containing Col props to specify columns, offset etc. [See more](http://beta.ant.design/components/grid/#Col) | object            | `{ xs: 24, sm: 12, md: 8 }` |\r\n\r\n\u003chr /\u003e\r\n\r\n### ConfirmSignUpForm\r\n\r\n```html\r\n\u003cConfirmSignUpForm /\u003e\r\n```\r\n\r\n| Property           | Description                   | Type   | Default                                                                                                                |\r\n| ------------------ | ----------------------------- | ------ | ---------------------------------------------------------------------------------------------------------------------- |\r\n| usernameInputProps | username input field props    | object | `{ prefix: \u003cIcon type=\"user\" /\u003e, size: 'large', placeholder: 'Email', message: 'Please enter your email!'}`            |\r\n| codeInputProps     | secret code input field props | object | `{ prefix: \u003cIcon type=\"lock\" /\u003e, size: 'large', placeholder: 'Enter your code', message: 'Please enter secret code!'}` |\r\n| buttonProps        | Submit button props           | object | `{ size: 'large', type: 'primary', label: 'Submit'}`                                                                   |\r\n\r\n\u003chr /\u003e\r\n\r\n\r\n### ResetPassword\r\n\r\n```html\r\n\u003cResetPassword /\u003e\r\n```\r\n\r\n![ResetPassword](https://raw.githubusercontent.com/mzohaibqc/antd-amplify-react/master/images/ResetPassword.png?raw=true \"ResetPassword\")\r\n\r\n\r\n| Property  | Description                                                                                                            | Type              | Default                     |\r\n| --------- | ---------------------------------------------------------------------------------------------------------------------- | ----------------- | --------------------------- |\r\n| title     | The label text displayed in Card title/header section.                                                                 | string\\|ReactNode | `Reset Password`            |\r\n| formProps | This is an object containing ResetPasswordForm props that you want to modify.                                          | object            | `{}`                        |\r\n| colProps  | An object containing Col props to specify columns, offset etc. [See more](http://beta.ant.design/components/grid/#Col) | object            | `{ xs: 24, sm: 12, md: 8 }` |\r\n\r\n\u003chr /\u003e\r\n\r\n### ResetPasswordForm\r\n\r\n```html\r\n\u003cResetPasswordForm /\u003e\r\n```\r\n\r\n| Property           | Description                | Type   | Default                                                                                                           |\r\n| ------------------ | -------------------------- | ------ | ----------------------------------------------------------------------------------------------------------------- |\r\n| usernameInputProps | username input field props | object | `{ prefix: \u003cIcon type=\"user\" /\u003e, size: 'large', placeholder: 'Email', message: 'Please enter your email!'}`       |\r\n| passwordInputProps | password input field props | object | `{ prefix: \u003cIcon type=\"lock\" /\u003e, size: 'large', placeholder: 'Password', message: 'Please enter your password!'}` |\r\n| buttonProps        | Submit button props        | object | `{ size: 'large', type: 'primary', label: 'Submit'}`                                                              |  |\r\n\r\n\u003chr /\u003e\r\n\r\n\r\n### RequireNewPassword\r\n\r\n```html\r\n\u003cRequireNewPassword /\u003e\r\n```\r\n\r\n![RequireNewPassword](https://raw.githubusercontent.com/mzohaibqc/antd-amplify-react/master/images/RequireNewPassword.png?raw=true \"RequireNewPassword\")\r\n\r\n\r\n| Property  | Description                                                                                                            | Type              | Default                     |\r\n| --------- | ---------------------------------------------------------------------------------------------------------------------- | ----------------- | --------------------------- |\r\n| title     | The label text displayed in Card title/header section.                                                                 | string\\|ReactNode | `Change Password`           |\r\n| formProps | This is an object containing ResetPasswordForm props that you want to modify.                                          | object            | `{}`                        |\r\n| colProps  | An object containing Col props to specify columns, offset etc. [See more](http://beta.ant.design/components/grid/#Col) | object            | `{ xs: 24, sm: 12, md: 8 }` |\r\n\r\n\u003chr /\u003e\r\n\r\n### RequireNewPasswordForm\r\n\r\n```html\r\n\u003cRequireNewPasswordForm /\u003e\r\n```\r\n\r\n| Property           | Description                | Type   | Default                                                                                                                   |\r\n| ------------------ | -------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------- |\r\n| passwordInputProps | password input field props | object | `{ prefix: \u003cIcon type=\"lock\" /\u003e, size: 'large', placeholder: 'New Password', message: 'Please enter your new password!'}` |\r\n| buttonProps        | Submit button props        | object | `{ size: 'large', type: 'primary', label: 'Submit'}`                                                                      |\r\n\r\n\u003chr /\u003e\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmzohaibqc%2Fantd-amplify-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmzohaibqc%2Fantd-amplify-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmzohaibqc%2Fantd-amplify-react/lists"}