You shouldn't need to enter a code. As far as I know, you should be able to click
$1 while on your iPhone or iPad and it should open TestFlight automatically and let you join. If that doesn't work, let me know! I'll PM you my email so you can send screenshots if you have issues.