def oauth.of
import cswap-bend-cli@0.1.0.0/usage/cred.bend as Credimport Base
import cswap-bend-cli@0.1.0.0/json.bend as Json
31# The claudeAiOauth object of a credential text; JNull when absent or not an
32# object (extract_oauth_data).
33def oauth.of(+cred: String) -> Json.Json:
34 oauth.obj(parse.get("claudeAiOauth", Json.parse(cred)))