DONTUSE [Google-api-nodejs-client](https://stackoverflow.com/questions/tagged/google-api-nodejs-client)
Questions tagged [google-auth-library-nodejs]
25 questions
8
votes
2 answers
TypeError: Cannot read property 'redirect_uris' of undefined
I want to write an app that can process some of my gmail emails that are labeled a certain way.
The example code here gave me a starting point for my code (which I've rewritten using promises instead of async await):
'use strict';
const path =…

ohmyfromage
- 133
- 1
- 5
3
votes
0 answers
How to authenticate to Cloud Function using a node.js client
I have a node.js application running in GKE that needs to be able to make a server-to-server call to a Cloud Function that has permission configured to only allow the service account configured on the GKE pod to invoke it. So basically, the node.js…

jacob
- 2,762
- 1
- 20
- 49
3
votes
0 answers
How does google sign-in for Android application work?
This is my understanding about auth flow for a web application;
This is recommended for mobile application, as per RFC 8252
When I go to Google developers console > Create Credentials > OAuth Client id > Android [Application type], it asks me for:…

Amit Kumar Gupta
- 7,193
- 12
- 64
- 90
2
votes
2 answers
How to get a REFRESH_TOKEN with react-google-login
I am using react-google-login plugin for React which provides me a Google oAUth Sign-in / Log-in component for React.
This is my component:
const LogIn = ({ artist_id }) => {
const responseGoogle = (response) => {
let {accessToken} =…

DaMatt91
- 544
- 1
- 7
- 18
2
votes
2 answers
How to get first name and profile picture from id token google sign in
so I'm making the integration with google sign in from a web-site, so basically the flow here is:
google sign in -> get the token id and send to an auth rest api -> rest api get the user Name, profile picture and email then signup the user.
My…

Gabriel Cunha
- 25
- 5
2
votes
1 answer
bigquery authenticating with service account from text\string and not file path
I am using
this nodejs bigquery client
I have the service account json in string\text, I want to avoid to write it to temporary file due to security reasons.
Is there an option to do new BigQuery() and provide the service account as string and not…

user2482703
- 151
- 2
- 13
2
votes
1 answer
Sometimes failing to retrieve Application Default Credentials on GKE Autopilot in googleapis auth library
Some pods in my GKE Autopilot cluster aren't able to grab the Application Default Credentials to call other GCP services.
I will apply a new deployment, and 1 or 2 out of the 3 pods won't be able to authenticate using the googleapis…

Mike Gindin
- 31
- 3
2
votes
0 answers
How to send binary data in Gaxios request object with Oauth2Client in google-auth-library-nodejs
I am attempting to upload photos to an authenticated account with google-auth-library-nodejs, mostly following the example here. I have successfully authenticated the client with OAuth2Client and am making a post request first with the image, then…

Isaac Fehr
- 21
- 1
1
vote
0 answers
Google API Authentication: are there alternatives to service account keys?
I'm seeking your advice to piece together a mechanism that would facilitate authentication to Dialogflow ES and CX to allow running experiments on multiple agents (projects) from our workbench application in a smooth and error-proof manner. The…

Simon
- 11
- 1
1
vote
3 answers
Domain-wide delegation using default credentials in Google Cloud Run
I'm using a custom service account (using --service-account parameter in the deploy command). That service account has domain-wide delegation enabled and it's installed in the G Apps Admin panel.
I tried this code:
app.get('/test', async (req, res)…

victor141516
- 71
- 1
- 5
1
vote
2 answers
generateEmailVerificationLink and other Firebase Passing State in Email Actions
So I am working closely with mobile dev team to generate the proper email when the user signs up, resets the pw etc.
With this piece of code that I pasted below and after all the whitelisting & dynamic link config, we are finally generating the…

Jesús Fuentes
- 919
- 2
- 11
- 33
1
vote
1 answer
Google IAP using Node certificate has expired error?
I have a node server which needs to connect to an IAP (Identity Aware Proxy) protected API endpoint. The below example from Google seems to be fine expect for the certificate has expired error. I believe I simply need to send rejectUnauthorized:…

lukechambers91
- 691
- 1
- 6
- 21
0
votes
0 answers
404 returned when trying to fetch ID token from inside docker container in cloud build
I have a NextJs app that uses an API hosted on Google Cloud Run during its static site generation (SSG). The SSG happens during the build step, which is performed inside a docker node.js container in Cloud Build. However, I get this error during the…

ptf
- 485
- 5
- 14
0
votes
0 answers
Sign in with google "The verifyIdToken method requires an ID Token"
I'm using the Sign in With Google button for authentication, as described on this site: https://developers.google.com/identity/gsi/web/guides/get-google-api-clientid
The frontend code looks like this:
window.onload = function () {
…

Pazzle
- 376
- 6
- 16
0
votes
1 answer
Unable to save login session in Vue
I have a login page that I can login via google, and when I login I get the parameters of the user. The problem is when I refresh the page the parameters are not saved.
This is my code:
export default {
name: "App",
data() {
return {
…

Yagel
- 1,184
- 2
- 18
- 41