Keyelss mobile SDK can generate a signed a JWT containing a custom payload. You can use the signed JWT to implement Dynamic Linking.
Generate signed JWT
Pass JwtSigningInfo to the authentication to generate a signed JWT:
//Keyless adds a td claim to the JWTs containing the data you specifyval jwtSigningInfo =JwtSigningInfo(claimTransactionData ="<your custom data")// if you want to authenticate with biometricval biomAuthConfig =BiomAuthConfig(jwtSigningInfo = jwtSigningInfo)// if you want to authenticate with pinval pinAuthConfig =PinAuthConfig(pin ="1234", jwtSigningInfo = jwtSigningInfo)// perform the authenticationKeyless.authenticate( configuration = biomAuthConfig, // pinAuthConfig if you use pin onCompletion = { /*TODO: process result*/ })
//Keyless adds a td claim to the JWTs containing the data you specifylet jwtSigningInfo =JwtSigningInfo(claimTransactionData ="<your custom data>")// if you want to authenticate with biometriclet biomAuthConfig =BiomAuthConfig(jwtSigningInfo = jwtSigningInfo)// if you want to authenticate with pinlet pinAuthConfig =PinAuthConfig(pin ="1234", jwtSigningInfo = jwtSigningInfo)// perform the authenticationKeyless.authenticate( configuration = biomAuthConfig, // pinAuthConfig if you use pin onCompletion = { /*TODO: process result*/ })
// Keyless adds a td claim to the JWTs containing the data you specifyfinal jwtSigningInfo =JwtSigningInfo("<your custom data>");// if you want to authenticate with biometricfinal biomAuthConfig =BiomAuthConfig( jwtSigningInfo: jwtSigningInfo);// if you want to authenticate with pinfinal pinAuthConfig =PinAuthConfig( pin:"1234", jwtSigningInfo: jwtSigningInfo);try {// perform the authenticationfinal result =awaitKeyless.instance.authenticate( biomAuthConfig // or pinAuthConfig if you use pin );print("JWT signed successfully: ${result.signedJwt}");} catch (error) {print("Authentication failed: $error");}
User signing public key
The AuthenticationSuccess contains the following fields: