If you have a referral link, it will automatically detect the referral code. If not then you can provide that after the login screen, when you get asked: "Do you have a referral code?".