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
423 stars 232 forks source link

No https:// in the AppDomain #67

Closed jrbrodie77 closed 6 years ago

jrbrodie77 commented 6 years ago

Minor issue, but following the sample app, I got tripped up at the AppDomain entry. If I copy and paste from the console, I end up with https:// with the domain name. It would be great if the redundant https could be ignored.

from sample/index.html...

function initCognitoSDK() {
    var authData = {
        ClientId : '6kkj6umf6mp1r2l1923r2am9n0',
        AppWebDomain : 'https://foobar.auth.us-west-2.amazoncognito.com',
        ..........
yuntuowang commented 6 years ago

Yes, the "https://" is not included in the app domain. If you see the CognitoAuth.js source code, you will see it. I will update the index.html sample app too!