isotoma / react-cognito

Library for integrating Facebook React and Amazon Cognito
Apache License 2.0
116 stars 48 forks source link

Feature Request: setupCognito - ability to enable different features without editing library #7

Closed kbrown closed 6 years ago

kbrown commented 7 years ago

I'm having to modify policy.js or recreate setupCognito if I want a different behavior. I'd like to be able to pass in the features to enable in an array.

const setupCognito = (store, config) => { store.dispatch(Action.configure(config)); enable(store, direct); //enable(store, emailVerificationRequired); enable(store, identityPoolLogin); };

dibell commented 6 years ago

merged