I am following the guide at https://developers.google.com/identity/sign-in/android/backend-auth to get OAuth working with my Android app. I have successfully managed to get the ID token and send it to the server, but now I can't get the next step completed with Golang.
How do I simply take this ID token and get the email address from it so that I can log the user in on my server? Any guides and documentation I can find on this are either doing things completely different, referencing an old version of the oauth APIs, or seem to be using a pattern that only works for web. I can't believe it is this hard to get Google sign in working with Google's language.
String email = payload.getEmail();
to use this you have to import
import com.google.api.client.googleapis.auth.oauth2.GoogleIdToken.Payload;
all this is given in the page you linked to.