deleteCredentials

Delete the PublicKeyCredentialSource by Relying Party Id. This method does not delete the keys from the server.

Parameters

rpId

The relying party id to lookup from the internal storage


suspend fun deleteCredentials(publicKeyCredentialSource: PublicKeyCredentialSource, forceDelete: Boolean = false)

Delete the provide PublicKeyCredentialSource from local storage and also remotely from Server if the key is discoverable. By default, if failed to delete from server, local storage will not be deleted, by providing forceDelete to true, it will also delete local keys if server call is failed.

Parameters

publicKeyCredentialSource

The PublicKeyCredentialSource to be deleted

forceDelete

If true, it will also delete local keys if server call is failed.


fun deleteCredentials(publicKeyCredentialSource: PublicKeyCredentialSource)

Deprecated

Use deleteCredentials(publicKeyCredentialSource: PublicKeyCredentialSource, forceDelete: Boolean = false)

Delete the provide PublicKeyCredentialSource, the PublicKeyCredentialSource.id will be used as the key to lookup from internal storage. This method does not delete the keys from the server.

Parameters

publicKeyCredentialSource

The PublicKeyCredentialSource to be deleted