**If you use two-factor authentication on GitHub, Leanpub cannot work with your book on GitHub.**
If you try this, Leanpub will have trouble accepting your Github share request on Leanpub.
We get an error message that says:
The ______ organization requires all members to have two-factor authentication enabled. // See: https://developer.github.com/v3/orgs/members/#edit-your-organization-membership
The obvious fix would be for us to turn on two-factor authentication on our account, but unfortunately this is not feasible. If we turn on two-factor authentication, then we have to answer two-factor authentication challenges for all API requests, which is just not possible as they go out frequently and at all hours of the day.
There are a few, mostly obvious, possible workarounds for this.
You could turn off that requirement.
You could use or create a different account on GitHub or Bitbucket to host this one repository. Bitbucket has free private repos.
You could switch over to using Dropbox for syncing your book to Leanpub.
We hope that one of those is acceptable.
Sorry about this. I wish we could just turn two-factor authentication on, but we did actually try this once and it caused a lot of problems.