getUserIdOrThrow

abstract suspend fun getUserIdOrThrow(): String

Retrieves the user ID or throws an exception if the user is not authenticated.

Return

The user ID as a String.

Throws

if the user is not authenticated.