with

fun with(id: String, promptInfo: BiometricPrompt.PromptInfo? = Security.promptInfo): Credential?

Return the Credential associated with the given id.

Note: This blocks on withAsync.

Parameters

id

The id of the Credential to fetch.

promptInfo

The BiometricPrompt.PromptInfo for displaying biometric prompt. A non-null value is required if the Credential with id is stored using a biometric Credential.Security.