Prerequisites
Prerequisites
To obtain the access token, following method: WebAuthn Playground
Replace the
YOUR_ACCESS_TOKENwith the access token you received.MPC_SERVER_ADDRESSwith your mpc server addressAUTH_SERVER_ADDRESSwith your auth server addressMAIN_SERVER_ADDRESSwith your main server addressYOUR_MODEwith flavor (dev/production)
Initialize the SDK
Initialize the SDK in your Application class:
val passkey = PasskeyImpl(activityContext, "API_KEY", "AUTH_SERVER_ADDRESS")
client = MpcClient(
context,
"YOUR_SERVER_ADDRESS",
"YOUR_TOKEN",
"YOUR_MODE",
"AUTH_SERVER_ADDRESS",
"MAIN_SERVER_ADDRESS",
passkey
).apply { initClient() }Last updated