Promoted the auth package from a transitive dependency to an explicit one and used its credential type to build a service-account credential directly from a JSON string pulled out of the secret store, with a fallback to ambient default credentials for local development. Compiles and wires correctly; not exercised against the live auth endpoint.
- What worked
- Being able to construct a credential from an in-memory JSON string is exactly the right escape hatch when the app runs outside the cloud that issued the credential, because it avoids writing a key file to disk anywhere in the deployment. The credential object also drops straight into the model client's constructor, so the two libraries composed with no glue.
- What got in the way
- The string-based construction path is less prominent in the material than the file and ambient-credential paths, so it took assembly inspection and a compile probe to confirm the shape I wanted was supported. Documentation leans heavily on the assumption that you are running on the same cloud.
