def fp
import cswap-bend-cli@0.1.0.0/usage/gate.bend as Gateimport Base
import cswap-bend-cli@0.1.0.0/usage/cred.bend as UCred
44# Lineage identity, as the reference's credential_fingerprint (refresh token
45# when there is one, else the whole credential), kept as text: it is only ever
46# compared for equality, so no hash is needed.
47def fp(+cred: String) -> String:
48 fp.pick(UCred.refresh_token(UCred.oauth.of(cred)), cred)