peburrows / goth

Elixir package for Oauth authentication via Google Cloud APIs
http://hexdocs.pm/goth
MIT License
284 stars 108 forks source link

Handle cases when SDK config file is blank #171

Open pvthuyen opened 5 months ago

pvthuyen commented 5 months ago

gcloud CLI config file, ~/. config/gcloud/configurations/config_default could be blank if gcloud init is not run yet. In that case, Goth.Config.get_configuration_data/1 still returns an empty map instead of nil so the fallover to fetching from metadata server would not work.

xfatedky commented 5 months ago

thanks for the fix