validateAndConsume

suspend fun validateAndConsume(challenge: String)

Validates a nonce/challenge and atomically marks it as used, so another attempt to validate it will fail.

Parameters

challenge

challenge to validate

Throws

when the given challenge is expired or invalid