def isc
import cswap-bend-cli@0.1.0.0/policy/rank.bend as Rankimport Base
import cswap-bend-cli@0.1.0.0/policy/types.bend as T
178# A switchable OAuth candidate: not disabled, not the live slot.
179def isc(+a: T.Account, +active: Nat) -> Bool:
180 match a:
181 case T.Account{slot, email, kind, disabled}:
182 is_oauth(kind) && Bool.not(disabled) && Bool.not(Nat.is_eq(slot, active))