registerRecoveryKey

abstract suspend fun registerRecoveryKey(userId: UserId, publicKey: ByteArray, registeredAt: Instant): Boolean

Registers publicKey (32 bytes) as userId's recovery key:

registeredAt (server time) becomes the key's installation time. A stored key also removes any pending reset of the user (none can exist without an active key). Concurrent calls behave as if they ran one after the other.