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

TokenScopesArray? What goes here? #8

Closed clark-sharedit closed 6 years ago

clark-sharedit commented 7 years ago

TokenScopesArray : '',

I am assuming valid entries are the same from the App Client Settings

TokenScopesArray : ['phone', 'email', 'profile','openid', 'aws.cognito.signin.user.admin'],

mryanmurphy commented 7 years ago

Those are the correct entries.

glb commented 7 years ago

Perhaps

TokenScopesArray: ['<TODO: your scope array here, try "phone", "email", ...>'],

would be a more helpful example? Or putting in the full set as defaults with a // TODO: customize if desired comment?

yuntuowang commented 6 years ago

@glb @jesseSharedit both provided great suggestions. I have updated README.md to clarify how to initiate scope array.

glb commented 6 years ago

@yuntuowang Thank you!