Select the types of activity you want to include in your feed.
Reject empty access_token in parse_token_response
An empty string is not a usable bearer token. Now returns Missing_access_token instead of Ok, catching the problem before it surfaces as a failed userinfo request with "Bearer ".
···4646 | Github -> "github"
4747 | Google -> "google"
4848 | Gitlab -> "gitlab"
4949+ | Custom c -> c.name
5050+5151+let provider_slug = function
5252+ | Github -> "github"
5353+ | Google -> "google"
5454+ | Gitlab -> "gitlab"
4955 | Custom c -> path_safe c.name
50565157let authorize_url = function
···178184179185let parse_token_response body =
180186 match decode token_response_jsont body with
181181- | Ok t -> Ok t
187187+ | Ok t ->
188188+ if t.access_token = "" then begin
189189+ Log.warn (fun m -> m "Token parse failed: empty access_token");
190190+ Error Missing_access_token
191191+ end
192192+ else Ok t
182193 | Error e ->
183194 let err = classify_token_error body e in
184195 Log.warn (fun m -> m "Token parse failed: %a" pp_parse_token_error err);