AWS Amplify + React Native - TypeError: Cannot read property 'computeModPow' of undefined

· Tech · No AI

Recently, I’ve started learning React Native with AWS Amplify. I wanted to log in a user which is very simple, just a single function:

Auth.signIn(email, password);

Even the simplest things do not have to work right away ;-) I got an error:

TypeError: Cannot read property ‘computeModPow’ of undefined

After some debugging it turned out that I forgot about two things:

  1. Link Cognito library: react-native link amazon-cognito-identity-js
  2. Update pods: cd ios ; pod update (it installs RNAWSCognito pod)

Now it works!

uptime
8,233 days · since 2004
posts
294 · busiest 2026 (64)
words
~143,065 · ~10 h read
topics
tech 239 · personal 55
langs
en 229 · pl 65
written
211 by hand · 83 AI-assisted
projects
3
build
ed6e135 · 2026-07-17