amazon-archives / amazon-cognito-identity-js

Amazon Cognito Identity SDK for JavaScript
Other
984 stars 454 forks source link

cognitoUser.getDevice() throws error: Missing required key 'DeviceKey' in params #647

Open ildar-icoosoft opened 6 years ago

ildar-icoosoft commented 6 years ago
cognitoUser.getDevice({
    onSuccess: function (result) {
        debugger;
    },
    onFailure: function(err) {
        // err: Error: Missing required key 'DeviceKey' in params
    }
});

If I add cognitoUser.getCachedDeviceKeyAndPassword(); to the beginning then everything is ok.