amazon-archives / amazon-cognito-auth-js

The Amazon Cognito Auth SDK for JavaScript simplifies adding sign-up, sign-in with user profile functionality to web apps.
Apache License 2.0
424 stars 232 forks source link

Configuration section of readme confusing #93

Closed jarbot closed 6 years ago

jarbot commented 6 years ago

The README calls for the installation of a json loader and goes on to explain the configuration. Is that why you suggest installing the json loader? To load the pool config?

yuntuowang commented 6 years ago

Hi @jarbot, I don't entirely understand your question. The README.md doesn't mention the installation of a json loader.

jarbot commented 6 years ago

From the README.md

npm install --save-dev webpack json-loader

I assume its for loading the magic amplify json file that contains config for user and identity pools. No worries, though. I could never figure out how to manually configure cognito. I couldn't wrap my head around the difference between user pools and identity pools.

I'm trying okta, auth0, etc.

yuntuowang commented 6 years ago

You can see more info here. https://webpack.js.org/loaders/json-loader/