Hook to access the available phone country codes and recommended default.
CountryCodes object containing the available list (each with code, label, dialCode) and the recommended default; both null when not provided
available
code
label
dialCode
recommended
null
import { useCountryCodes } from '@auth0/auth0-acul-react/login-id';function CountryPicker() { const countryCodes = useCountryCodes(); const available = countryCodes?.available;} Copy
import { useCountryCodes } from '@auth0/auth0-acul-react/login-id';function CountryPicker() { const countryCodes = useCountryCodes(); const available = countryCodes?.available;}
Hook to access the available phone country codes and recommended default.