has

fun has(role: String? = null, permission: String? = null, feature: String? = null, plan: String? = null, reverification: ReverificationConfig? = null): Boolean

Returns whether the signed-in user passes the given authorization checks against the activeSession. Returns false when no user is signed in or when the current session is not ACTIVE (e.g., PENDING while session tasks are outstanding). See Session.checkAuthorization.