New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@adamldoyle/react-aws-auth-context-mantine-rhf

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adamldoyle/react-aws-auth-context-mantine-rhf

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

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

react-aws-auth-context-mantine-rhf

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 schemas), and react-toastify.

Usage

  1. yarn add @adamldoyle/react-aws-auth-context-core @adamldoyle/react-aws-auth-context-mantine-rhf
  2. Configure aws-amplify Auth prior to mounting <AuthContextProvider> (example provided in ./storybook/preview.js)
  3. Requires Cognito to be configured with:
    • email as username
    • given_name, family_name, and allow_marketing attributes (none marked as required)
  4. Wrap portion of app that requires authentication in <AuthContextProvider> (normal usage would be to wrap entire app near the top-level)

Examples

Full flow example is provided in the Context/AuthContextProvider story via Storybook

  • https://adamldoyle-react-aws-auth-context-mantine-rhf-storybook.netlify.app/

OR

  1. Create .env file in root based on .env.sample
  2. yarn storybook

Development

  1. yarn install
  2. yarn build

Contributors

Adam Doyle

License

MIT

FAQs

Package last updated on 11 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc