···5151 let refresh_token = Option.map to_ascii refresh_token in
5252 let expires_in = Option.map (fun n -> n land max_int mod 100000) expires_in in
5353 let json =
5454- match
5555- Json.to_string token_response_jsont
5656- (access_token, expires_in, refresh_token)
5757- with
5858- | Ok s -> s
5959- | Error _ -> failwith "jsont encode failed"
5454+ Json.to_string token_response_jsont (access_token, expires_in, refresh_token)
6055 in
6156 match Oauth.parse_token_response json with
6257 | Ok t ->