AWS Amplify/Cognito and ember-simple-auth integration
This release replaces the user of AWS Cognito directly with the AWS Amplify library.
CognitoStorage
object, which was used to put Cognito's tokens in ember-simple-auth's storage, is no longer used. We automatically persist the access token in ember-simple-auth's authenticated
hash as before, but nothing else from Cognito storage. This actually enables one to potentially use a different ember-simple-auth storage such as cookie storage, since it's much less likely that the authenticated data will be greater than 4096 bytes.CognitoUser
have been deprecated and replaced with similar functions on the Cognito
service. These have been renamed to their Amplify equivalents.amazon-cognito-identity-js
directly in your app, this is included (as well as the amplify packages) by default in the addon.These deprecations will be removed by 1.0.
deleteUser
method to CognitoUser
(Thanks @mike183!)invalidate()
with no underlying Cognito user.