fromUri

suspend fun fromUri(uri: String): OathCredential

Create an OathCredential from a URI. Format: otpauth://totp/Issuer:AccountName?secret=SECRET&issuer=Issuer&algorithm=SHA1&digits=6&period=30 Format: otpauth://hotp/Issuer:AccountName?secret=SECRET&issuer=Issuer&algorithm=SHA1&digits=6&counter=0

Return

An OathCredential.

Parameters

uri

The URI string.

Throws

if the URI is invalid.