Prerequisites

Prerequisites

  • To obtain the access token, following method: WebAuthn Playground

  • Replace the YOUR_ACCESS_TOKEN with the access token you received.

  • MPC_SERVER_ADDRESS with your mpc server address

  • AUTH_SERVER_ADDRESS with your auth server address

  • MAIN_SERVER_ADDRESS with your main server address

  • YOUR_MODE with 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