//! Helpers shared by the provider presets.
use HashMap;
use Value;
use crateUrlValues;
/// Coerces a JSON scalar (as decoded from a userinfo/profile payload) into a
/// string. OAuth providers are inconsistent about returning ids as numbers vs
/// strings, so numeric kinds are handled too.
/// Returns the first non-empty string, or `""`.
/// Converts a flat string map into the multimap shape used for provider
/// authorization parameters. Returns an empty map for an empty input.