A proplem in Two factor authentication

Hi, I have a problem in Two factor authentication which is Morocco isn’t on the list of countries codes ! Is there any solution ?

Hi @farhatizakaria.

Thank you for reaching out.

I can confirm that Morocco is not currently on our list of supported countries for SMS authentication.

We’re only able to offer SMS authentication in countries where our SMS providers can guarantee a high deliverability rate. Unfortunately, their service is not reliable enough in Morocco at this point in time, so we’re unable to offer SMS authentication as an option for our Moroccan users.

The 2FA method available to you is via a TOTP authentication application - more information about this can be found here:


Now that you’re logged in, we’d suggest re-enabling 2FA and setting up some of these additional recovery methods:

Download your recovery codes. This is by far the best way to make sure you don’t get locked out of your account.

Set up Recover Accounts Elsewhere. If you’re otherwise unable to authenticate, this feature allows you to verify your ownership of a GitHub account using a token stored elsewhere.

Add a security key. Phone got stolen and you lost your recovery codes? Today is turning into a rough day, but you’ll still have access to your account if you have a FIDO U2F security key added to your account.

More information on configuring additional recovery methods can be found in our Help docs:


Does this apply to Kenya?