Skip to main content

Installing Single Factor Auth Android SDK

Add Web3Auth to Gradle

In your project-level build.gradle or settings.gradle file, add JitPack repository:

dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven { url "https://jitpack.io" } // <-- Add this line
}
}

Then, in your app-level build.gradle dependencies section, add the following:

dependencies {
// ...
implementation 'com.github.web3auth:single-factor-auth-android:2.1.0'
}
Latest-SDK

Check the latest version of Web3Auth's SFA Android SDK and update accordingly.

Permissions

Open your app's AndroidManifest.xml file and add the INTERNET permission.

Please note, the <uses-permission> element must be a direct child of the <manifest> root element

<uses-permission android:name="android.permission.INTERNET" />