@auth0/auth0-acul-react - v1.7.0
    Preparing search index...

    Variable useCountryCodes

    useCountryCodes: () => CountryCodesMembers | undefined

    Type Declaration

      • (): CountryCodesMembers | undefined
      • Hook to access the available phone country codes and recommended default.

        Returns CountryCodesMembers | undefined

        CountryCodes object containing the available list (each with code, label, dialCode) and the recommended default; both null when not provided

        import { useCountryCodes } from '@auth0/auth0-acul-react/login-id';
        function CountryPicker() {
        const countryCodes = useCountryCodes();
        const available = countryCodes?.available;
        }