July 30, 2019 • ☕️ 2 min read
Two-factor authentication, or 2FA is the most significant solution used to protect users data and adds security while logging into browser, app or any website. It adds extra layer in the logging process by asking the user about authentication code that only the user could have access.
Some users might choose weak or poor passwords, might apply the same password for multiple different sites. Many of the users have bad habit of writing and saving their username and password from where they could fetch with ease. Just by entering username and password
even if the password chosen is strong enough, the second person can access all the data, even without using any kind of sophisticated hacking.
To secure the users data, two-factor authentication solution has been generated. One-time code is being generated and the user is supposed to enter the code within minimum time possible.
Without 2FA :
$ git clone https://github.com/mozilla/addons-frontend.git >> Username : your_username >> Password : your_password
With 2FA :
For using 2 factor authentication, initially we need to know how to set up the access token for command line and after that, the same generated token is used as your password.
Here, are the steps written sequentially to know about generating tokens for command line in detail :
profileicon and then go to
Developer Settings, click on it.
personal access tokens. After that, click on
Generate new token:
Use the generated token as password when we authenticate it via command line.
$ git clone https://github.com/mozilla/addons-frontend.git >> Username : your_username >> Password : your_access_token
Hi 👋🏻, My name is Sonia, 20 yo, studying Information Technology from Panjab University, India. I am passionate about developer tooling and developer communities. Currently, working with Embark Studios on a new platform for gamemaking. I was the CNCF 2020 Intern at Thanos, and spent the winter of 2019 working with web-compatibility team of Mozilla as an Outreachy Intern. I also love to travel, teach, and speak about open source 👩🏻💻