• Destroys an instance of the SDK.

    This function deletes all credentials, trusted issuer certificates and device keys from storage for a given instance of the SDK.

    An error is thrown if this method is called when the SDK is already initialized; call deinitialize() first.

    This API is idempotent, meaning calling it with an instance ID that has never been initialized will not result in an error.

    Returns Promise<Result<void, DestroyError>>

    Throws

    InvalidParams if the provided arguments are missing or invalid.

    Throws

    MobileCredentialHolderErrorType.SdkInitialized if the SDK is currently initialized; call deinitialize() before destroying.

  • Destroys an instance of the SDK.

    This function deletes all credentials, trusted issuer certificates and device keys from storage for a given instance of the SDK.

    An error is thrown if this method is called when the SDK is already initialized; call deinitialize() first.

    This API is idempotent, meaning calling it with an instance ID that has never been initialized will not result in an error.

    Parameters

    Returns Promise<Result<void, DestroyError>>

    Throws

    InvalidParams if the provided arguments are missing or invalid.

    Throws

    MobileCredentialHolderErrorType.SdkInitialized if the SDK is currently initialized; call deinitialize() before destroying.

Generated using TypeDoc