authy-form-helpers
authy-form-helpers copied to clipboard
Require external list of country codes
Currently, there is no easy way to find out which country codes are supported by Authy. Documentation refers to the list of countries in this project but it does not mention if this list is authoritative.
My suggestion is sourcing the excellent countries project by @mledoze, specifically the json data file and simply pluck the columns you're interested in. If, by chance, you do not support all of the countries listed there or support others (my diff shows countries with calling codes 599 and 882 are supported by Authy but not available on the countries json file), then I'd recommend sourcing the file anyway, adding those extra calling codes and version that file so that it can be sourced by other projects too as authoritative.
Thanks Ruimarinho, I'll take a look. We'll add a full country list soon.
@danpal I've added this list for validation on https://github.com/seegno/co-authy.
There is one part of the OP that I feel didn't get answered here, and that is, are the dialing codes authoritative? Considering that some dialing codes are not present in the collection, does that mean that Authy doesn't work for those codes, or will authy work for any valid dialing code?