Get id from the connected user

When a user is connected with this link and redirected to my website.

https://id.twitch.tv/oauth2/authorize?client_id=*****&response_type=token&scope=user:edit+user:read:email&redirect_uri=http://localhost/