title: id Token vs access_token google login api in web
body: <p>I was using <code>access_token</code> after sign in with Google, but the Google login has changed and I am trying to use it as <code>id_token</code>.</p>
  <p>I received the <code>email</code> and <code>id</code> through the existing code below.</p>
  <pre class="lang-js prettyprint-override"><code>const userInfoClient = google.oauth2('v2').userinfo;
  
        this.oauthClient.setCredentials({
          access_token: tokenData.token,
        });
  
        const userInfoResponse = await userInfoClient.get({
          auth: this.oauthClient,
        });
  </code></pre>
  <p>The changed code is as follows.
  I receive various values ​​through the payload.
  I need <code>email</code> and <code>id</code>, but <code>id</code> value does not exist. Is <code>nbf</code> equal to <code>id</code> in <code>access_token</code>?</p>
  <pre class="lang-js prettyprint-override"><code>const ticket = await client.verifyIdToken({
            idToken: tokenData.token,
            audience: process.env.GOOGLE_CLIENT_ID,
          });
  </code></pre>
  <p>payload has values ​​such as iss,nbf,aud,sub,email,azp,name,picture,iat,exp,jti</p>