{"_id":"@adamldoyle/react-aws-auth-redux-slice","_rev":"5-4833fcae742f2b0b8937d2ceb120fc8b","time":{"1.0.1":"2021-06-15T04:27:36.327Z","created":"2021-06-16T05:47:42.513Z","1.0.0":"2021-06-16T05:47:42.714Z","modified":"2022-04-04T11:25:30.899Z","2.0.0":"2022-02-08T06:03:00.581Z"},"name":"@adamldoyle/react-aws-auth-redux-slice","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"@adamldoyle/react-aws-auth-redux-slice","version":"1.0.0","main":"dist/index.js","module":"dist/index.esm.js","types":"dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/adamldoyle/react-aws-auth-redux-slice.git"},"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":"^1.3.1","@material-ui/core":"^4.11.0","@material-ui/icons":"^4.11.0","@reduxjs/toolkit":"^1.5.0","aws-amplify":"^4.0.0","formik":"^2.2.0","react":"^17.0.0","react-dom":"^17.0.0","react-redux":"^7.1.0","react-toastify":"^7.0.0","yup":"^0.32.0"},"dependencies":{},"devDependencies":{"@adamldoyle/react-aws-auth-context":"^1.3.1","@babel/core":"^7.14.2","@material-ui/core":"^4.11.4","@material-ui/icons":"^4.11.2","@reduxjs/toolkit":"^1.5.0","@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","formik":"^2.2.6","identity-obj-proxy":"^3.0.0","jest":"^26.6.3","prettier":"^2.3.0","react":"^17.0.2","react-dom":"^17.0.2","react-redux":"^7.1.3","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"},"gitHead":"442b0677713eb60a5271a80b9ece3a0cf497b4b0","description":"Extension of [@adamldoyle/react-aws-auth-context](https://github.com/adamldoyle/react-aws-auth-context) that listens to Auth context changes and adds the session and profile to an authentication Redux slice.","bugs":{"url":"https://github.com/adamldoyle/react-aws-auth-redux-slice/issues"},"homepage":"https://github.com/adamldoyle/react-aws-auth-redux-slice#readme","_id":"@adamldoyle/react-aws-auth-redux-slice@1.0.0","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-u6KNBhRFE7uUUYxekAIVpPuUgV0+8lOug6tR9HPwADcdclnPLFtBpglVVThN194T+nlj50etSkFwXhtRpCYjug==","shasum":"4fdf8d7d3db397c7f59971f1676aad065a94787a","tarball":"https://registry.npmjs.org/@adamldoyle/react-aws-auth-redux-slice/-/react-aws-auth-redux-slice-1.0.0.tgz","fileCount":7,"unpackedSize":42393,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgyZB+CRA9TVsSAnZWagAAqWwP/0tBz7xINAvdNtb5v3te\nbZOM47r1zhr3770UfLDCXwyoH+U7ixkd1ZTO/Z6ucHdNq3NfoMMQzHN8axsz\nCsX1ouvcad1vVkxfczD/deqFHH6QY5ss+thcYbm+8QDxwj/f5UGsn2BZxsSd\n6pZ+k2fQnKJWkwnkwEMsqsP4iXjgx2N74zFW3b7NVYDgR2DpA4TAzA2nPGG3\n0n6PglzE+65rDGhTRhq6gItE4lhtGIzClI5U4b3frwQi7nglSTcm6rwV/xib\nOpxYGn0RqnyErPsmIvJ7obvynWonnoW9WkjBWueVmLTRz6JmSp7mpUUMZoDT\nncYTffp6E4/tmQDiW4uxa0OgDfXaY1B4uLfIr4xRyYDFIKvkjfyEikS+T48q\nrzrs/R+oQXlEKelJDcWOCyYxojtXD/OmSHo+muV/T+2a2ETjS23KQrozW3nw\n7NFJuLjh4FK7ntgATHjWSh76KwEMmkWiMKWwzCrxVqY7CdGYLJXNBwjWKuli\n8j0bnO/96ehFvwAzLV/9FmqvKAiFE0zlqZwIU+dhxIMfjaq795l7VFw08L+J\nBfdfyVLYV8C3eAaNDrsLhiNIp2FsGwlRs+cfJxUxiIHnyUAMSHviB/vIfeP3\nDdbXuvtP+Gz8o9gpr7AeHRyXZTmQ57Gjo8Tib/6G48ZSV/CMrvvAeqOF7vh6\nygei\r\n=PLqU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC0i53AaxJu5fsCXtkIvM+MMK/fszHfXEWRBIR0DPw61QIhAOFWqYDtt+Fq3DRHdampYl5+GLcw2arxs755w0tByuff"}]},"_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-redux-slice_1.0.0_1623822462565_0.8063846761046536"},"_hasShrinkwrap":false},"2.0.0":{"name":"@adamldoyle/react-aws-auth-redux-slice","version":"2.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-redux-slice"},"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","@reduxjs/toolkit":"^1.5.0","react":"^17.0.0","react-dom":"^17.0.0","react-redux":"^7.1.0"},"dependencies":{},"devDependencies":{"@adamldoyle/react-aws-auth-context-core":"^1.0.0","@adamldoyle/react-aws-auth-context-mui-formik":"^1.0.0","@babel/core":"^7.14.2","@material-ui/core":"^4.11.4","@material-ui/icons":"^4.11.2","@reduxjs/toolkit":"^1.5.0","@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","formik":"^2.2.6","identity-obj-proxy":"^3.0.0","jest":"^26.6.3","prettier":"^2.3.0","react":"^17.0.2","react-dom":"^17.0.2","react-redux":"^7.1.3","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":"Extension of [@adamldoyle/react-aws-auth-context-core](https://github.com/adamldoyle/react-aws-auth-context-core) that listens to Auth context changes and adds the session and profile to an authentication Redux slice.","_id":"@adamldoyle/react-aws-auth-redux-slice@2.0.0","dist":{"shasum":"1bad822ebcba1ae019ad4a5364e4444000630a85","integrity":"sha512-CeC6wLX+xVk+8ZgsCGU2sKbeMAgqd0t7jXp8xRrUo/CQq9TFIBqvDalNmw6sOg5KIaLnKa03eW8BQQVZQkbQ/A==","tarball":"https://registry.npmjs.org/@adamldoyle/react-aws-auth-redux-slice/-/react-aws-auth-redux-slice-2.0.0.tgz","fileCount":9,"unpackedSize":42362,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiAgeUCRA9TVsSAnZWagAA+doQAIv4YDeARwrXlXDI8OSr\nYS+ZPs0Kk3CSQpJNcdrUhOJo3+B/OoY78B5RNUdsMUTvz5ZIKEhwNh/jJvYU\nbJOnQmXqiVPz6IAkJffzf0yDCbLOeYNoaOOfK9jN6BrlLpYtF9H1w3mVK61s\nuG7BufPT/G0dKvmv3R2HcMzCLqleMHyofyVYYMhEs/wYPObdBSaDSKHxQkN2\nsOHYqWaxl2QqK2UVs5RLLdUs/5cVYMUcBUBm9HT5XPyYMWFmLgNzGhaW5fqz\nSiE7Zp5PNrK6PLCSXJ/OUvjGSmqRiLpw2M7brRmEsJVTBe+/95xH4W3qtGLD\nQdTq4thpQ/oy8tcQ0nld2lzZcGfESfUmcmtqjafHddfcAKAL+02vCQRNUK4b\nUy3ApndXEFGzyKsNPKW9sWLyBa9Lqj0uBvRCKbMalE36nZjF81ASIVHTwvGx\nVcK2G+4V5P5JQ41UPTt0JGGw/2XMFNrviMYsNj4RAr8R8Uri049GUYfIDqhM\n5hlr2FeVtB22cJM+dKjSp37T1qR5XyB4cmTvFgu/jCZWzvszS+NNglirKNGW\nEYtznDmqx3iw62b9jMAr/nfL2cX+1beAn5lL9Xls5y26nCupmMF6YqRLsTdM\nRHUrbR9ziIxsQvr4wrnUbpE9sCGA97wyZ3jKm/lLHIVcEeUvE539J8tZrWpl\nK7++\r\n=0Yc6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICLhSDh7iUvfJQ8ijZV3ayZqXxPDIWcoDfyXwI1MvPU6AiEAmHhAUYMr4NoGkdQwG9ISY16chzxzgp5m1Br4vgmbIdQ="}]},"_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-redux-slice_2.0.0_1644300180457_0.8492977932737773"},"_hasShrinkwrap":false}},"maintainers":[{"name":"adamldoyle","email":"adamldoyle@gmail.com"}],"description":"Extension of [@adamldoyle/react-aws-auth-context-core](https://github.com/adamldoyle/react-aws-auth-context-core) that listens to Auth context changes and adds the session and profile to an authentication Redux slice.","repository":{"type":"git","url":"https://github.com/adamldoyle/react-aws-auth-redux-slice"},"license":"MIT","readme":"# react-aws-auth-redux-slice\n\nExtension of [@adamldoyle/react-aws-auth-context-core](https://github.com/adamldoyle/react-aws-auth-context-core) that listens to Auth context changes and adds the session and profile to an authentication Redux slice.\n\n## Features\n\n1. Automatically detects profile/session changes and keeps them up-to-date in Redux\n2. Provides several selectors to extract information\n\n## Installation\n\n1. `yarn add @adamldoyle/react-aws-auth-redux-slice`\n2. Build auth slice using `buildAuthSlice` which returns `authSlice`, `authSelectors`, `AuthInjector`\n3. Nest `AuthInjector` within `AuthContextProvider` (from [@adamldoyle/react-aws-auth-context-core](https://github.com/adamldoyle/react-aws-auth-context-core) or a related component library) and containing the rest of your application component heirarchy\n4. Use selectors provided by `authSelectors` to select session/profile information as necessary\n\n## Examples\n\n- https://adamldoyle-react-aws-auth-redux-slice-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"}