Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juniorcesarabreu/9b60653f3ab73d97216f7d36ade7cf13 to your computer and use it in GitHub Desktop.
Save juniorcesarabreu/9b60653f3ab73d97216f7d36ade7cf13 to your computer and use it in GitHub Desktop.

Github Two-Factor Authentication (2FA) for Brazil via SMS

The Github doesn't provide country code for Brazil (+55). To add this option, just run the code below in your console:


[PT-BR]

Autenticação em dois fatores (2FA) do GitHub para o Brasil via SMS

O GitHub não provê o código para enviar SMS para o Brasil (+55). Para adicionar essa opção ao select, rode o código abaixo no cnosole do seu navegador:

var brazil = document.createElement('option');
brazil.value = '+55';
brazil.appendChild(document.createTextNode('Brazil +55'));
document.querySelectorAll('#countrycode').forEach((select) => select.appendChild(brazil));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment