The problem is that this isn't real protection; it's very easy to hack. But depending on what you want to implement, it might be enough..
On Steam, everyone uses the Steam launcher to play, but on Itch, using the Itch launcher is optional. So you can't always verify the account of someone playing on Itch, and that's a problem if you want to sell your game here.