Skip to content

[SDK 54] AWS Amplify Auth (Cognito v5) – TypeError: Cannot read property 'computeModPow' of null on login #14583

@pvaras8

Description

@pvaras8

Before opening, please confirm:

JavaScript Framework

React Native

Amplify APIs

Authentication

Amplify Version

v5

Amplify Categories

auth

Backend

Amplify CLI

Environment information

System:
  OS: macOS 15.7 (arm64 Apple M3 Pro)
Binaries:
  Node: 23.5.0
  Yarn: 1.22.22
  npm: 10.9.2
  Watchman: 2024.12.02.00
Packages:
  aws-amplify: 5.3.27
  aws-amplify-react-native: 7.0.8
  amazon-cognito-identity-js: 6.3.14
  expo: 54.0.10
  react-native: 0.81.4
  react: 19.1.0
Global:
  @aws-amplify/cli: 14.0.1
  eas-cli: 16.19.3
  expo-cli: 6.3.10


Describe the bug

After upgrading my project to Expo SDK 54 (React Native 0.81.4), the login flow with Amplify Auth (Cognito v5) stopped working.
Calling Auth.signIn(username, password) now throws:
TypeError: Cannot read property 'computeModPow' of null

Expected behavior

Login with Amplify Auth (Cognito v5) should succeed without errors, just as it did before upgrading to Expo SDK 54.
The call to Auth.signIn(username, password) should return the authenticated user/session object instead of throwing a computeModPow error.

Reproduction steps

Code Snippet

// Put your code below this line.

Log output

// Put your logs below this line


aws-exports.js

No response

Manual configuration

No response

Additional configuration

No response

Mobile Device

No response

Mobile Operating System

No response

Mobile Browser

No response

Mobile Browser Version

No response

Additional information and screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    V5bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions