I have implemented the Oauth2 using google-auth-library in nodejs. Here is the sample code.
let ticket = await client.verifyIdToken({idToken: token, audience: