handlers/oauth/google.go
Function googleCallback
has 5 return statements (exceeds 4 allowed). Open
Open
func googleCallback(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json")
b, err := ioutil.ReadAll(r.Body)
defer r.Body.Close()
comment on exported var ClientID should be of the form "ClientID ..." Open
Open
// Get configuration
- Exclude checks
exported var ClientSecret should have comment or be unexported Open
Open
ClientSecret = utils.Getenv("OAUTH_GOOGLE_CLIENT_SECRET", "YOUR_CLIENT_SECRET")
- Exclude checks