How to get device token for web app

hi
i wanna know how you can get device token for webapp or any unique id or token for a specific user, im not talking about uid.