{"_id":"@adamldoyle/react-aws-auth-context-mantine-rhf","_rev":"1-34b389d4256ae313063ce8d4658072c4","name":"@adamldoyle/react-aws-auth-context-mantine-rhf","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@adamldoyle/react-aws-auth-context-mantine-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-mantine-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","@mantine/core":"^3.6.6","@mantine/hooks":"^3.6.6","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","@mantine/core":"^3.6.6","@mantine/hooks":"^3.6.6","@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), Mantine, react-hook-form (Yup ","_id":"@adamldoyle/react-aws-auth-context-mantine-rhf@1.0.0","dist":{"shasum":"d6ceee5a22e0fa3bf8bfcf59e505b3799d996241","integrity":"sha512-YTakX9bbJUbLVU2c2Ne/1pBW2RMY6gbXZI2oi5/nzF4B89x13NS8HbTzdUdMC9kp20BiuGjOyd+EsIOljMWKxA==","tarball":"https://registry.npmjs.org/@adamldoyle/react-aws-auth-context-mantine-rhf/-/react-aws-auth-context-mantine-rhf-1.0.0.tgz","fileCount":9,"unpackedSize":111844,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBfwSCRA9TVsSAnZWagAA2DUP/ixxa+jUwByd/P0WMt7T\nsk2JhvTJkineM0vkk0EaCWOvT3bzfiDo8DYPH/0bFDAyiegMGh+m6xmwZ0pR\nbm8RoxvedTwSchFYbfTMp0j9m3c07JIcsa5zK5qGFosRdu+XTAXWFszFpn2w\n6VWiDtgDHCjT04wjOU979P7g4lf3onbBY21SysYBZeNYQ1yb4amCWIKgn3xU\nULeLw3AI8XOmSJkhBE189EIhoqgUU1WQPEcgxT9+rg3bs1/mQc9NgxI5CQE2\nzUvVIKHQV0gChC0mWkBZSE35np8LWte2dD6B1ngJF3vmssLimhHQBP2eM3PZ\nzQssThXBzXjNI3HeEf5xrbWR6WRCkC3E2zee/qFVTj54pXC+cFmwIo+EPMhd\ncCuhFi1Tonz38jKPipJUYd/qM4sn9Yu47SrYgeGCM3WzGc1l1/utNkxumJPY\nzPNUM6owMU7vC38yWSi2QGj4ZRkW4XC4GfUzKZi5/XxXZw9VyedkHl1Z5GXQ\nWQv8iVPemYHk3LHWxP7/UM5iy93daTODmtlKXhVttacvyWbLeXdba+tzPsWG\nMqn5sMCwQz1tFjMii8J3/26LAUGY23epbe81sQkXThC4Zpbj8HR2MCA2fE3m\n5PXy9onBQ8UAtOc7F6n2A+y3iyKiOKBl49sHUE9iK1xO1u1qpGVe8nBiM4Qe\n4Kh9\r\n=6HZP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCAskTYDu5MOF12lYMyy+p96HCIg+hDv0mgR0qVBrlwAQIgQCeySznDdwInkiieyVycKeMO7WytDAn1WCuCuMGHtOM="}]},"_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-mantine-rhf_1.0.0_1644559378139_0.7634128754489657"},"_hasShrinkwrap":false}},"time":{"created":"2022-02-11T06:02:58.012Z","1.0.0":"2022-02-11T06:02:58.284Z","modified":"2022-04-04T11:25:30.440Z"},"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), Mantine, react-hook-form (Yup ","repository":{"type":"git","url":"https://github.com/adamldoyle/react-aws-auth-context-mantine-rhf"},"license":"MIT","readme":"# react-aws-auth-context-mantine-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), Mantine, 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-mantine-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-mantine-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"}