Download the "Authenticator" app on a phone, tablet, etc. Go in-game, and type "/2fa" and look at the map. Go into the authenticator app and hit the plus button, to add a new code. Select the option "Scan Barcode" and scan your map in-game. That is how you set it up.