SDK Integration
PowerAuth JS SDK Dependency
The PowerAuth JS SDK is a required peer dependency for the mToken SDK. You must install it in a compatible version.
Defining it as a peer dependency ensures that only a single instance of the PowerAuth SDK is used in your project, preventing issues with multiple npm clones.
- For React Native, install both 
react-native-powerauth-mobile-sdkandreact-native-mtoken-sdkusingnpmoryarn. - For Cordova, add both 
cordova-powerauth-mobile-sdkandcordova-mtoken-sdkusing thecordova plugin addcommand. 
Compatible PowerAuth Mobile JS SDK Versions
| mToken Version | PowerAuth JS SDK | 
|---|---|
2.1.x | 
      ^4.1.0 | 
    
2.0.x | 
      ^4.1.0 | 
    
1.1.x | 
      ^3.2.0 | 
    
1.0.x | 
      ^3.0.0 | 
    
React Native Installation
Supported Platforms
The library is available for the following React Native (0.73+) platforms:
- Android 5.0 (API 21) and newer
 - iOS 13.4 and newer
 
How To Install
1. Install packages via npm
# if now added yet, add powerauth mobile sdk first (compatible versions are on the top of this document)
npm i react-native-powerauth-mobile-sdk --save
npm i react-native-mtoken-sdk --save
2. Install pods for iOS (if needed)
To make integration work with iOS, you might need to install Pods (needed for PowerAuth):
cd ios
pod install
3. Import in your js/ts files
import { PowerAuth } from 'react-native-powerauth-mobile-sdk';
function createMtokenInstance() {
    const powerAuth = new PowerAuth("my-instance")
    // note that an activated PowerAuth instance is required. How to activate the PowerAuth instance, follow https://github.com/wultra/react-native-powerauth-mobile-sdk documentation.
    
    // Then, use PowerAuth's helper function to create the mtoken instance:
    const mtoken = powerAuth.createWultraMobileToken()
}
Cordova Installation
Supported Platforms
The library is available for the following Apache Cordova (>=12.0.0) platforms:
- Android 7.0 (API 24) and newer (cordova-android version >=12.0.0)
 - iOS 11.0 and newer (cordova-ios version >=7.0.0)
 
How To Install
1. Install plugins via the Cordova plugin installer
# if now added yet, add powerauth mobile sdk first (compatible versions are on the top of this document)
cordova plugin add cordova-powerauth-mobile-sdk
cordova plugin add cordova-mtoken-sdk
2. Install pods for iOS (if needed)
To make integration work with iOS, you might need to install Pods (needed for PowerAuth):
cd platforms/ios
pod install
3. Start using Wultra Mobile Token classes
const powerAuth = new PowerAuth("my-instance")
// note that an activated PowerAuth instance is required. How to activate the PowerAuth instance, follow https://github.com/wultra/react-native-powerauth-mobile-sdk documentation.
// Then, use PowerAuth's helper function to create the mtoken instance:
const mtoken = powerAuth.createWultraMobileToken()
Read Next
Last updated on Aug 26, 2025 (14:40)
    
    Edit on Github
    
    Send Feedback