79325442

Date: 2025-01-03 03:35:17
Score: 1
Natty:
Report link

Okay, finally figured this out too as the above answers didn't work for me. Based on the documentation here: https://cloud.google.com/bigquery/docs/authentication/end-user-installed

You can do:

const bigqueryClient = new BigQuery({
  projectId: <projectId>,
  credentials: {
    type: 'authorized_user',
    client_id: <client_id>,
    client_secret: <client_secret>,
    refresh_token: <refresh_token>,
  }
});
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Gavin O