1.0.13 • Published 5 years ago

ground-aws-cognito-auth-core v1.0.13

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago
npm install ground-aws-cognito-auth-core

Step 1 - Import Ground Store Provider

import { GroundAuthProvider } from 'ground-aws-cognito-auth-core';

Step 2 - Wrap your application

function App() {
  return (
    <GroundAuthProvider aws={awsmobile} mode={process.env.NODE_ENV}>
		  <SignUp />
	  </GroundAuthProvider>
  );
}

Step 3 - Use the context store

import { GroundAuthContextStore } from 'ground-aws-cognito-auth-core'


function SignUp() {
  // signup
  const signUp = GroundAuthContextStore.useStoreActions(actions => actions.authentication.signUp)

  return (
    <SignUp onClick={signUp} />
  )
}

Introduction

Ground AWS Cognito Authentication Core provides you the Store Provider and manage from you the state for your Ground React application with authenticating user using AWS Cognito.

Documentation

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago