Mobile
In Mobile, since we are in the web app authentication flow and web views are not recommended ways for authentication. We wrapped the implementation of authentication in our Leap auth web app (At present we support only web3auth for mobile).
At present minting an NFT in mobile, we are supporting via few and far.
Leap Stage - stage-auth.leapwallet.io
Leap Production - auth.leapwallet.io
To integrate into your mobile app, follow the below steps.

Step 1
We would recommend you open leap auth URLs in the following way.
Android - Chrome custom tabs
React Native - In-app browser
Step 2
Open the Leap Auth URL with the leapConfig param.
https://stage-auth.leapwallet.io
Create a config JSON object of the below format
Basic Config
{
auth_service: 'web3auth',
authConfig: {
appName: "YOUR_APP_NAME",
theme: 'dark',
isRedirect: true,
web3AuthNetwork: "mainnet",
domain: 'https://auth.leapwallet.io',
},
tenantId: "TENANT_ID",
clientId: "CLIENT_ID",
networkId: "mainnet",
leapRedirectURL: "DEEP_LINK"
collectionId: 2
nftText: "NFT Name"
}
JSONStringify the Object.
const stringified = JSON.stringify(config);
Encode the URIComponent in the String
const encodedURIComponents = encodeURIComponent(stringified);
Encode the object from base64toASCII
const encodedConfig = btoa(encodedURIComponents)
Add the param name
leapConfig
const url = `https://stage-auth.leapwallet.io/?leapConfig=${encodedConfig}`
Step 3
Once the authentication is successful and the wallet is created, Leap auth will redirect the user to leapRedirectUrl with the following params
LeapNearAddress - Wallet Address
Advanced Config
In advanced config, you can provide your own firebase and web3Auth configs
Follow this link https://web3auth.io/docs/guides/firebase to generate your Firebase and Web3Auth configs.
Pass the information below
{
auth_service: "web3Auth"
...
authConfig: {
firebaseConfig: {
...
},
Web3AuthClientId: 'WEB3_AUTH_CLIENT_ID',
JWTVerifier: {
name: "YOUR_APPLICATION_NAME",
verifier: "VERIFIER_NAME",
typeOfLogin: "jwt",
clientId: 'WEB3_AUTH_CLIENT_ID'
}
},
...
}
Examples
Last updated