Amazon-cognito-identity-js: Missing region in config

Created on 18 Jun 2016  路  2Comments  路  Source: amazon-archives/amazon-cognito-identity-js

I've downloaded all the libraries and copied the code from use case 1 into a web page, substituting in my settings. When I run it I get:
Missing region in config

I've included AWS.config.credentials.get(function (err) {
if (err) console.log(err);
else console.log(AWS.config.credentials);
});

and it made no difference. I've searched around and haven't found anything.

Any ideas on how I can make progress?

thanks

Most helpful comment

My basic problem is I'm an idiot. I couldn't see the difference between AWS.config.regio and AWSCognito.config

All 2 comments

Do you have the line below in your config and the aws-cognito-sdk.min.js included?

AWSCognito.config.region = 'us-east-1';

My basic problem is I'm an idiot. I couldn't see the difference between AWS.config.regio and AWSCognito.config

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kaihendry picture kaihendry  路  4Comments

ZwaarContrast picture ZwaarContrast  路  4Comments

tranan89 picture tranan89  路  5Comments

carlnordenfelt picture carlnordenfelt  路  5Comments

RashmiPandey picture RashmiPandey  路  4Comments