You still have your apple account on your PC/Android phone/etc. You just login on apple's website with your apple account and it passes the token/id to whatever app needs it.
For example you can goto dropbox on your pc/whatever and click signin with apple to see how it works.
For example you can goto dropbox on your pc/whatever and click signin with apple to see how it works.