Questions tagged [google-auth-library-nodejs]

DONTUSE [Google-api-nodejs-client](https://stackoverflow.com/questions/tagged/google-api-nodejs-client)

25 questions
0
votes
1 answer

@hapi/boom not returning correct error, instead "500 : Internal Server Error"

@hapi/boom is not returning correct error as thrown in code. Here is the code sample: controller.ts async (request: IRequest, h: IResponse) => { .... // some logic const userInfo = await verify(email, authToken) if (!userInfo) throw…
0
votes
1 answer

Can one batch requests with google-auth-library?

The way I have been using the client thus far has been like client = new OAuth2Client( process.env.GOOGLE_CLIENT_ID, process.env.GOOGLE_CLIENT_SECRET, "http://localhost:5000/oauth2callback" ); …
0
votes
1 answer

Google My Business: How to generate access token without user interaction

I want to use a Google My Business API to search and manage the businesses of our clients using my organization account detail. I want to use API as an Agency as I want to manage our clients' businesses. I've submitted the API access form and got…
0
votes
2 answers

Dependency resolution errors with firebase flutter app

I updated firebase admin for my firebase functions and also grpc when I tried to build my app it gave this error: FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:checkDebugDuplicateClasses'. > 1 exception…
0
votes
0 answers

GCP - Cloud Function Domain Wide Delegation using Application Default Credential (no -jwt)

I'm trying to create a cloud function, NodeJS based, that use domain wide delegation access to consume the API method gmail.users.settings.delegates.list. I looking for a solution that does not use the service account JSON key, i want to use default…
0
votes
1 answer

Error: User is not authorized while creating GCP project using service account

I am trying to create GCP project programmatically using Google API. Here is the sample code: const {JWT} = require('google-auth-library') async function main (keyFile = {PATH_TO_CREDENTIAL_FILE}) { const keys = require(keyFile) const…
0
votes
1 answer

Server to server OAuth

I want to create google spreadsheet everyday automatically from server side. Google spreadsheet requires OAuth to Create, edit, delete spreadsheet. To get OAuth access token we have to manually signin and allow permission on consent screen. This is…
0
votes
2 answers

What's the correct format of private_key when using it as an environment variable?

I am trying to use private_key for some GCP service nodejs client libraries, e.g. @google-cloud/pubsub, @google-cloud/trace-agent I got private_key from service account credential json file like this: I am trying to use it as an environment…
0
votes
1 answer

Error when generating a token in a js chrome extension when trying to verify it on a backend nodejs server

I am trying to generate a token in a chrome extension and then use it to verify requests to the backend server. I have been successful at generating a token in the front end but when I send it to the backend and verify it with the nodejs library…
0
votes
1 answer

google auth library node js: unpacking contents of token

Some google service is sending the program an Authorisation JWT token in the header of a request. Using the Google Auth Library (https://github.com/googleapis/google-auth-library-nodejs), how can I unpack the package to retrieve a field of the…
RmR
  • 1,917
  • 1
  • 22
  • 35
1
2