1.0.13 • Published 6 years ago

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

Weekly downloads
-
License
ISC
Repository
-
Last release
6 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

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago