Access Apple ID without other Apple devices
Hello, I just started to use a Macbook Pro for my job, and this is my very first time using an Apple product. I created an Apple ID and I currently own an Android phone, I am able to access my Apple ID from appleid.apple.com by clicking "didn't receive verification code?" and that sends a text message to my phone. The problem is whenever I try to login to the App Store I get an error: "An Apple ID verification code is required to sign in. Type your password followed by the verification code shown on your other devices."
There is no option to send a text message this way and I am not able to use my Apple ID from my laptop, what ca I do? Am I forced to buy an iOS device just to be able to log in to my Apple ID? thank you.
MacBook Pro, macOS Sierra (10.12.4)