{"action":"created","issue":{"url":"https://api.github.com/repos/aws-amplify/amplify-js/issues/563","repository_url":"https://api.github.com/repos/aws-amplify/amplify-js","labels_url":"https://api.github.com/repos/aws-amplify/amplify-js/issues/563/labels{/name}","comments_url":"https://api.github.com/repos/aws-amplify/amplify-js/issues/563/comments","events_url":"https://api.github.com/repos/aws-amplify/amplify-js/issues/563/events","html_url":"https://github.com/aws-amplify/amplify-js/issues/563","id":310155079,"node_id":"MDU6SXNzdWUzMTAxNTUwNzk=","number":563,"title":"Unable to use signIn - Cannot read property 'computeModPow' of undefined","user":{"login":"jdeanwaite","id":8517615,"node_id":"MDQ6VXNlcjg1MTc2MTU=","avatar_url":"https://avatars3.githubusercontent.com/u/8517615?v=4","gravatar_id":"","url":"https://api.github.com/users/jdeanwaite","html_url":"https://github.com/jdeanwaite","followers_url":"https://api.github.com/users/jdeanwaite/followers","following_url":"https://api.github.com/users/jdeanwaite/following{/other_user}","gists_url":"https://api.github.com/users/jdeanwaite/gists{/gist_id}","starred_url":"https://api.github.com/users/jdeanwaite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdeanwaite/subscriptions","organizations_url":"https://api.github.com/users/jdeanwaite/orgs","repos_url":"https://api.github.com/users/jdeanwaite/repos","events_url":"https://api.github.com/users/jdeanwaite/events{/privacy}","received_events_url":"https://api.github.com/users/jdeanwaite/received_events","type":"User","site_admin":false},"labels":[{"id":845261099,"node_id":"MDU6TGFiZWw4NDUyNjEwOTk=","url":"https://api.github.com/repos/aws-amplify/amplify-js/labels/Auth","name":"Auth","color":"bfdadc","default":false},{"id":772762686,"node_id":"MDU6TGFiZWw3NzI3NjI2ODY=","url":"https://api.github.com/repos/aws-amplify/amplify-js/labels/investigating","name":"investigating","color":"006b75","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/aws-amplify/amplify-js/milestones/1","html_url":"https://github.com/aws-amplify/amplify-js/milestone/1","labels_url":"https://api.github.com/repos/aws-amplify/amplify-js/milestones/1/labels","id":3266290,"node_id":"MDk6TWlsZXN0b25lMzI2NjI5MA==","number":1,"title":"aws-amplify@0.4","description":"","creator":{"login":"mlabieniec","id":1417045,"node_id":"MDQ6VXNlcjE0MTcwNDU=","avatar_url":"https://avatars1.githubusercontent.com/u/1417045?v=4","gravatar_id":"","url":"https://api.github.com/users/mlabieniec","html_url":"https://github.com/mlabieniec","followers_url":"https://api.github.com/users/mlabieniec/followers","following_url":"https://api.github.com/users/mlabieniec/following{/other_user}","gists_url":"https://api.github.com/users/mlabieniec/gists{/gist_id}","starred_url":"https://api.github.com/users/mlabieniec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlabieniec/subscriptions","organizations_url":"https://api.github.com/users/mlabieniec/orgs","repos_url":"https://api.github.com/users/mlabieniec/repos","events_url":"https://api.github.com/users/mlabieniec/events{/privacy}","received_events_url":"https://api.github.com/users/mlabieniec/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":38,"state":"closed","created_at":"2018-04-13T17:25:32Z","updated_at":"2018-07-19T17:08:26Z","due_on":null,"closed_at":"2018-07-19T17:08:26Z"},"comments":16,"created_at":"2018-03-30T19:58:58Z","updated_at":"2018-12-14T17:51:49Z","closed_at":"2018-04-25T21:15:59Z","author_association":"NONE","body":"**Do you want to request a feature or report a bug?**\r\nReport a Bug\r\n\r\n**What is the current behavior?**\r\n\r\nUnable to use `signIn`, fails with the error: `Cannot read property 'computeModPow' of undefined`\r\n\r\nIf the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than AWS Amplify.\r\n \r\nI have read other issues regarding this that discuss linking `amazon-cognito-identity-js`. I have linked the library using `react-native link amazon-cognito-identity-js`, and it appears successful. However, when I try and use the `signIn` function, I still receive the error. Here are the logs from the link.\r\n```\r\nrnpm-install info Linking amazon-cognito-identity-js ios dependency\r\nrnpm-install info Platform 'ios' module amazon-cognito-identity-js has been successfully linked\r\nrnpm-install info Linking amazon-cognito-identity-js android dependency\r\nrnpm-install info Platform 'android' module amazon-cognito-identity-js has been successfully linked\r\n```\r\n\r\nTried uninstalling the app, restarting packagers and debugger, etc.\r\n\r\n**What is the expected behavior?**\r\n\r\nI expect the `signIn` function to work.\r\n\r\n**Which versions of Amplify, and which browser / OS are affected by this issue? Did this work in previous versions?**\r\n\r\nThese are the aws plugins that I currently have installed:\r\n```\r\n    \"aws-amplify\": \"0.2.14\",\r\n    \"aws-amplify-react-native\": \"0.2.7\",\r\n    \"aws-appsync\": \"^1.0.3\",\r\n    \"aws-appsync-react\": \"^1.0.2\",\r\n    \"aws-sdk\": \"^2.173.0\",\r\n```\r\nHere is my RN info:\r\n```\r\nEnvironment:\r\n  OS: macOS High Sierra 10.13.3\r\n  Node: 8.10.0\r\n  Yarn: 1.5.1\r\n  npm: 5.6.0\r\n  Watchman: 4.9.0\r\n  Xcode: Xcode 9.2 Build version 9C40b\r\n  Android Studio: 3.0 AI-171.4443003\r\n\r\nPackages: (wanted => installed)\r\n  react: 16.3.0-alpha.1 => 16.3.0-alpha.1\r\n  react-native: 0.54.2 => 0.54.2\r\n```\r\n\r\nFull logs with log level set to DEBUG\r\n```\r\n[DEBUG] 00:36.981 SignIn - Sign In for testuser\r\nConsoleLogger.js:84\r\nTypeError: Cannot read property 'computeModPow' of undefined\r\nYellowBox.js:82\r\n    at BigInteger.nativeModPow [as modPow] (/Users/justin/VSCodeProjects/MissionaryTrainingApp/.vscode/.react/index.bundle:143326:18)\r\n    at AuthenticationHelper.calculateA (/Users/justin/VSCodeProjects/MissionaryTrainingApp/.vscode/.react/index.bundle:143634:16)\r\n    at AuthenticationHelper.getLargeAValue (/Users/justin/VSCodeProjects/MissionaryTrainingApp/.vscode/.react/index.bundle:143572:16)\r\n    at new AuthenticationHelper (/Users/justin/VSCodeProjects/MissionaryTrainingApp/.vscode/.react/index.bundle:143554:12)\r\n    at CognitoUser.authenticateUserDefaultAuth (/Users/justin/VSCodeProjects/MissionaryTrainingApp/.vscode/.react/index.bundle:145268:36)\r\n    at CognitoUser.authenticateUser (/Users/justin/VSCodeProjects/MissionaryTrainingApp/.vscode/.react/index.bundle:145258:23)\r\n    at /Users/justin/VSCodeProjects/MissionaryTrainingApp/.vscode/.react/index.bundle:153869:22\r\n    at tryCallTwo (/Users/justin/VSCodeProjects/MissionaryTrainingApp/.vscode/.react/index.bundle:14110:7)\r\n    at doResolve (/Users/justin/VSCodeProjects/MissionaryTrainingApp/.vscode/.react/index.bundle:14274:15)\r\n    at new Promise (/Users/justin/VSCodeProjects/MissionaryTrainingApp/.vscode/.react/index.bundle:14133:5)\r\n```"},"comment":{"url":"https://api.github.com/repos/aws-amplify/amplify-js/issues/comments/447401380","html_url":"https://github.com/aws-amplify/amplify-js/issues/563#issuecomment-447401380","issue_url":"https://api.github.com/repos/aws-amplify/amplify-js/issues/563","id":447401380,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NzQwMTM4MA==","user":{"login":"MikaelStenstrand","id":5174743,"node_id":"MDQ6VXNlcjUxNzQ3NDM=","avatar_url":"https://avatars0.githubusercontent.com/u/5174743?v=4","gravatar_id":"","url":"https://api.github.com/users/MikaelStenstrand","html_url":"https://github.com/MikaelStenstrand","followers_url":"https://api.github.com/users/MikaelStenstrand/followers","following_url":"https://api.github.com/users/MikaelStenstrand/following{/other_user}","gists_url":"https://api.github.com/users/MikaelStenstrand/gists{/gist_id}","starred_url":"https://api.github.com/users/MikaelStenstrand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikaelStenstrand/subscriptions","organizations_url":"https://api.github.com/users/MikaelStenstrand/orgs","repos_url":"https://api.github.com/users/MikaelStenstrand/repos","events_url":"https://api.github.com/users/MikaelStenstrand/events{/privacy}","received_events_url":"https://api.github.com/users/MikaelStenstrand/received_events","type":"User","site_admin":false},"created_at":"2018-12-14T17:51:49Z","updated_at":"2018-12-14T17:51:49Z","author_association":"NONE","body":"`react-native link` did not solve the problem, but running `react-native link amazon-cognito-identity-js` fixed it. Thx!"}}
{"actor":{"display_login":"MikaelStenstrand"}}