add get auth code method