google / oauth2l

oauth2l ("oauth tool") is a simple CLI for interacting with Google API authentication.
Apache License 2.0
643 stars 81 forks source link

Compare settings with nil after accessing settings.APIKey #66

Closed QiAnXinCodeSafe closed 5 years ago

QiAnXinCodeSafe commented 5 years ago

https://github.com/google/oauth2l/blob/abeb08f278e7973101d881b5d962055bf52f3950/sgauth/token.go#L33-L38

If settings may be nil, accessing settings.APIKey will result in panic.