{"_id":"@adamldoyle/react-aws-auth-context-mui-rhf","_rev":"1-7f078823ff4d67a67a61ec7311bf43a2","name":"@adamldoyle/react-aws-auth-context-mui-rhf","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@adamldoyle/react-aws-auth-context-mui-rhf","version":"1.0.0","main":"dist/index.js","module":"dist/index.esm.js","types":"dist/index.d.ts","repository":{"type":"git","url":"https://github.com/adamldoyle/react-aws-auth-context-mui-rhf"},"license":"MIT","scripts":{"prepare":"yarn run build","build":"yarn run prettify && yarn run lint && yarn run test:coverage && yarn run bundle","bundle":"rollup -c","prettify":"prettier --write src/**","lint":"eslint 'src/**/*.{js,ts,tsx}'","test":"jest src/** --runInBand","test:watch":"jest src/** --watch --runInBand","test:coverage":"jest src/** --silent --collect-coverage --runInBand","storybook":"start-storybook -p 6006 --quiet","storybook:docs":"start-storybook -p 6007 --docs --quiet","storybook:build":"build-storybook"},"peerDependencies":{"@adamldoyle/react-aws-auth-context-core":"^1.0.0","@material-ui/core":"^4.11.0","@material-ui/icons":"^4.11.0","aws-amplify":"^4.0.0","react":"^17.0.0","react-dom":"^17.0.0","react-hook-form":"^7.26.0","react-toastify":"^7.0.0","yup":"^0.32.0"},"devDependencies":{"@adamldoyle/react-aws-auth-context-core":"^1.0.0","@babel/core":"^7.14.2","@material-ui/core":"^4.11.4","@material-ui/icons":"^4.11.2","@rollup/plugin-commonjs":"^17.0.0","@rollup/plugin-node-resolve":"^11.0.1","@storybook/addon-actions":"^6.2.9","@storybook/addon-essentials":"^6.2.9","@storybook/addon-links":"^6.2.9","@storybook/react":"^6.2.9","@testing-library/react":"^11.2.7","@testing-library/react-hooks":"^6.0.0","@types/jest":"^26.0.23","@types/react":"^17.0.5","@types/react-dom":"^17.0.5","@typescript-eslint/eslint-plugin":"^4.23.0","@typescript-eslint/parser":"^4.23.0","aws-amplify":"^4.0.2","babel-jest":"^26.6.3","babel-loader":"^8.2.2","babel-preset-react-app":"^10.0.0","eslint":"^7.26.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.0","eslint-plugin-react":"^7.23.2","eslint-plugin-react-hooks":"^4.2.0","identity-obj-proxy":"^3.0.0","jest":"^26.6.3","prettier":"^2.3.0","react":"^17.0.2","react-dom":"^17.0.2","react-hook-form":"^7.26.0","react-toastify":"^7.0.4","rollup":"^2.36.1","rollup-plugin-copy":"^3.3.0","rollup-plugin-dts":"^3.0.2","rollup-plugin-peer-deps-external":"^2.2.0","rollup-plugin-postcss":"^3.1.2","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.29.0","ts-jest":"^26.4.4","typescript":"^4.2.4","yup":"^0.32.9"},"description":"React context for managing authentication flow with AWS. Extremely opinionated in its implementation as the primary goal is to provide a quick-to-use authentication solution for my React apps. Utilizes AWS (via aws-amplify), Material-UI, react-hook-form (","_id":"@adamldoyle/react-aws-auth-context-mui-rhf@1.0.0","dist":{"shasum":"290dadf2192f52784179ae1426f91d947a8ac06e","integrity":"sha512-/H/NFekwTjz/iqjBadsala/1MueeXUTO4uI+qbl018aMJOKjI0qQawkQC1TRKojyUad3FTVhdxZGXLb64D3g9w==","tarball":"https://registry.npmjs.org/@adamldoyle/react-aws-auth-context-mui-rhf/-/react-aws-auth-context-mui-rhf-1.0.0.tgz","fileCount":9,"unpackedSize":121848,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiCCb2CRA9TVsSAnZWagAAI1EP/jdSV2zSOpmkU7++5yIj\n6UweABn6DNBGBLEZaXIWq0GGc3mSBk56qJHVEYV5UxOScjghRtNX/2jiUv7q\nXsmPm5CJl2UZveYgQ0Nx5FibPAr3BzW9OmCIh7m9PtAhEA7mV07nucMTQXNF\nSagaTLh6wWYMaBQFUEQ/ZQisFUPe1fU8V5Zla607fFe6rOkpgWRVj4Yn5T6K\ngXSrxKjGBX+gtmHrTBurz9KWYGd0kP2l0MH4d/M+APw48ZoluF38f90cW5rv\na5GPZnNh3kJyrYfUBP6u29grVYN9iBm455wKnWqbhLEL1p+M6ms1w9VBZcyl\nn6YpBgNosP/IvqspgneX+K/7tYsTIgiwAVsEUwTODzL8IZpCJRXYjIKqsG3e\nODimHATXeMh4WtoTMgbtuB/h8h89MsQEgiLajZmcER3v8LG4OmRvN7nP2yCt\nRwmjExEgy3UFbqwuieZ2nounxx2c2I0B4aVl8tM/Dl/Z4Aae9pYAa3jhuSMB\nRY29zHsAY0TPKF6hwaFJJNnGH8pUwg9E/znnTGmv9sm16yyBkbGPDfaHkcN1\nrRIt2sRDhV127/6eF9yLHo7RDRjqwDQux7GATM1CEhX0aTc6GigWvuw4XaHX\nIy4KFXjXk6OjvMAcJzIwKaLDGuQrV5uSvIxL/wB81tfnDMh9M6eP69WAhcH7\njV7w\r\n=1x1b\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEKX+CZiMQX+OZ6WjR+swMqGHeuEhZ0b+Jf5PQyyIDWyAiAEs7hEovKpypr9rMwdmyM0tZj5ga4f0vXK0CAGeFntPA=="}]},"_npmUser":{"name":"adamldoyle","email":"adamldoyle@gmail.com"},"directories":{},"maintainers":[{"name":"adamldoyle","email":"adamldoyle@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-aws-auth-context-mui-rhf_1.0.0_1644701430465_0.8785603006382163"},"_hasShrinkwrap":false}},"time":{"created":"2022-02-12T21:30:30.410Z","1.0.0":"2022-02-12T21:30:30.690Z","modified":"2022-04-04T11:25:30.752Z"},"maintainers":[{"name":"adamldoyle","email":"adamldoyle@gmail.com"}],"description":"React context for managing authentication flow with AWS. Extremely opinionated in its implementation as the primary goal is to provide a quick-to-use authentication solution for my React apps. Utilizes AWS (via aws-amplify), Material-UI, react-hook-form (","repository":{"type":"git","url":"https://github.com/adamldoyle/react-aws-auth-context-mui-rhf"},"license":"MIT","readme":"# react-aws-auth-context-mui-rhf\n\nReact context for managing authentication flow with AWS. Extremely opinionated in its implementation as the primary goal is to provide a quick-to-use authentication solution for my React apps. Utilizes AWS (via aws-amplify), Material-UI, react-hook-form (Yup schemas), and react-toastify.\n\n## Usage\n\n1. `yarn add @adamldoyle/react-aws-auth-context-core @adamldoyle/react-aws-auth-context-mui-rhf`\n2. Configure aws-amplify Auth prior to mounting `<AuthContextProvider>` (example provided in `./storybook/preview.js`)\n3. Requires Cognito to be configured with:\n   - email as username\n   - given_name, family_name, and allow_marketing attributes (none marked as required)\n4. Wrap portion of app that requires authentication in `<AuthContextProvider>` (normal usage would be to wrap entire app near the top-level)\n\n## Examples\n\nFull flow example is provided in the `Context/AuthContextProvider` story via Storybook\n\n- https://adamldoyle-react-aws-auth-context-mui-rhf-storybook.netlify.app/\n\nOR\n\n1. Create `.env` file in root based on `.env.sample`\n2. `yarn storybook`\n\n## Development\n\n1. `yarn install`\n2. `yarn build`\n\n## Contributors\n\n[Adam Doyle](https://github.com/adamldoyle)\n\n## License\n\nMIT\n","readmeFilename":"README.md"}