Facebook is recently launched an open source tool called Delegated Recovery to recover the forgotten passwords of your online accounts. The tool is currently available only on their GitHub repository, the tool uses a recovery token saved with Facebook to authenticate and retrieve your online accounts.
Normally, the 2-step authentication method uses your email and/or mobile number to recover your account.
The Delegated Recovery tool is a protocol that will allow users to use their Facebook account to recover their other online accounts. Currently, the Delegated Recovery tool on GitHub, allowing users to reinstate their accounts. whenever you want to get back your GitHub account, Facebook will send that token on GitHub with a time stamped counter signature.
Meanwhile,”Facebook doesn’t share your personal data with GitHub, either; they only need Facebook’s assertion that the person recovering is the same person who saved the token, which can be done without revealing who you’re,” said by a Facebook security Engineer ‘Brad Hill’ in this post.