Imported from the Apple Support Forums via the Wayback Machine 🔗
Solution: Go to System Preferences -> iCloud -> Sign Out.
Then over there, sign in again with your iCloud account. And you will be automatically signed-in in App Store and be able to download apps. It will ask for a password though.