SealdSsksTMRPlugin_GetFactorToken method
int
SealdSsksTMRPlugin_GetFactorToken(
- Pointer<
NativeSealdSsksTMRPlugin> tmrPlugin, - Pointer<
Utf8> sessionId, - Pointer<
Utf8> authFactorType, - Pointer<
Utf8> authFactorValue, - Pointer<
Utf8> challenge, - Pointer<
Pointer< result,NativeSealdSsksTMRPluginGetFactorTokenResponse> > - Pointer<
Pointer< error,NativeSealdError> >
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,
);
}