withAuth

suspend fun <T> withAuth(block: suspend () -> T): T

Executes given block of code after successful authentication.

Parameters

block

a block of code