nee-core / dev.neeffect.nee.effects.security / SecurityCtx

SecurityCtx

interface SecurityCtx<USER, ROLE>

Functions

getCurrentUser

abstract fun getCurrentUser(): Out<SecurityError, USER>

hasRole

abstract fun hasRole(role: ROLE): Boolean