diff --git a/internal/ghl/oauth.go b/internal/ghl/oauth.go index 003e684..6f5fd0b 100644 --- a/internal/ghl/oauth.go +++ b/internal/ghl/oauth.go @@ -344,7 +344,7 @@ func (h *OAuthHandler) exchangeForLocationToken(ctx context.Context, companyAcce if err != nil { return nil, err } - if resp.StatusCode != http.StatusOK { + if resp.StatusCode != http.StatusOK && resp.StatusCode != http.StatusCreated { return nil, fmt.Errorf("locationToken endpoint returned %d: %s", resp.StatusCode, string(body)) }