generateCodeWithValidity

Generate an OTP code for an OATH credential and get its time validity information.

Return

A Result containing the OTP code and validity information or an Exception in case of failure.

Parameters

credentialId

The ID of the credential.