See Google's OAuth2 documentation for how to get information about the logged in user.
It's basically just a GET call to https://www.googleapis.com/oauth2/v1/userinfo with a correct access token. In the response the user id is included.
Note that you also need to include the correct scope in your very first redirect to Google:
https://www.googleapis.com/auth/userinfo.profile