SealdSsksTMRPlugin_GetFactorToken method

int SealdSsksTMRPlugin_GetFactorToken(
  1. Pointer<NativeSealdSsksTMRPlugin> tmrPlugin,
  2. Pointer<Utf8> sessionId,
  3. Pointer<Utf8> authFactorType,
  4. Pointer<Utf8> authFactorValue,
  5. Pointer<Utf8> challenge,
  6. Pointer<Pointer<NativeSealdSsksTMRPluginGetFactorTokenResponse>> result,
  7. Pointer<Pointer<NativeSealdError>> error,
)

Retrieve the TMR JWT associated with an authentication factor.

@param tmrPlugin The SSKS TMR plugin instance. @param sessionId The user's session ID. @param authFactorType The type of authentication factor. Can be "EM" or "SMS". @param authFactorValue The value of authentication factor. @param challenge Optional. The challenge sent by SSKS to the user's authentication method, if any. @param result A pointer to a SealdSsksTMRPluginGetFactorTokenResponse*. @param error A pointer to a SealdError* where details will be stored in case of error. @return Error code: -1 if an error happened, 0 for success.

Implementation

int SealdSsksTMRPlugin_GetFactorToken(
  ffi.Pointer<NativeSealdSsksTMRPlugin> tmrPlugin,
  ffi.Pointer<pkg_ffi.Utf8> sessionId,
  ffi.Pointer<pkg_ffi.Utf8> authFactorType,
  ffi.Pointer<pkg_ffi.Utf8> authFactorValue,
  ffi.Pointer<pkg_ffi.Utf8> challenge,
  ffi.Pointer<ffi.Pointer<NativeSealdSsksTMRPluginGetFactorTokenResponse>>
      result,
  ffi.Pointer<ffi.Pointer<NativeSealdError>> error,
) {
  return _SealdSsksTMRPlugin_GetFactorToken(
    tmrPlugin,
    sessionId,
    authFactorType,
    authFactorValue,
    challenge,
    result,
    error,
  );
}