Comments (9)
I'm just trying to access a google account's profile information that's all. Am I correct to use the latter one or this library/repo would help me achieve the same?
I would recommend Google Sign in for this use case:
Related: We’re exploring alternative runtime support, including browsers, for this library. This will be useful for things like admin panels where the customer is a member of a GCP org. This can be tracked here:
from google-auth-library-nodejs.
I'm just trying to access a google account's profile information that's all. Am I correct to use the latter one or this library/repo would help me achieve the same?
I would recommend Google Sign in for this use case:
Related: We’re exploring alternative runtime support, including browsers, for this library. This will be useful for things like admin panels where the customer is a member of a GCP org. This can be tracked here:
Thank you for pointing me in the right direction. I made it work 😁 !
from google-auth-library-nodejs.
I don't have an idea why proxy agent get executed in the browser.
This library is currently is not designed for the browser. That can be tracked here:
For browser usage today, I would recommend:
from google-auth-library-nodejs.
Hey @MorpheusZI,
This sounds like a duplicate of this issue:
Looking at the error message in the log you posted, it looks like somehow http.Agent
is undefined
here:
Perhaps this is an issue with the bundler or configuration you are using?
from google-auth-library-nodejs.
Something similar happens on my end.
This is my code. I'm simply just importing the client.
import { OAuth2Client } from 'google-auth-library';
I'm using create-vue
with Typescript with untouched configs for vite and TS.
from google-auth-library-nodejs.
@noamolat-fs this sounds like a bundler issue rather than an issue with this library. I’m not sure how else http.Agent
wouldn’t exist here (referenced in the error message):
from google-auth-library-nodejs.
@noamolat-fs this sounds like a bundler issue rather than an issue with this library. I’m not sure how else
http.Agent
wouldn’t exist here (referenced in the error message):
I'm having a hard time with what should I use. I've found these two libraries:
I was thinking that the issue above was a dependency issue so I switched to the latter, somehow I'm able to access it but now I have a problem with the global type for gapi
. It's not being recognized by typescript even after installing @types/gapi
but clearly there's a value for it.
I'm just trying to access a google account's profile information that's all. Am I correct to use the latter one or this library/repo would help me achieve the same?
I'm doing the requests in my Vue app with some sort of service scripts (typescript).
I switched to the last one because I thought the nodejs being referred was for the backend stuff and as mentioned I'm doing frontend.
Sorry for the unrelated subjects since I'm just trying to give a better insight into what I'm trying to do. Feel free to just focus on what's related.
from google-auth-library-nodejs.
Closing this as it appears to be a build tool issue unrelated to this library.
from google-auth-library-nodejs.
using this library only to make google-spreadsheet works by using JWT from service account, unfortunately I get this error too.
I don't have an idea why proxy agent get executed in the browser.
Building my own api call to get access_token from google is too much works.
from google-auth-library-nodejs.
Related Issues (20)
- OAuth2Client.getIdToken() HOT 1
- samples for external-account: should acquire ADC for AWS creds failed HOT 2
- Error when import library HOT 1
- googleauth googleauth: sign should use the private key for JWT clients failed HOT 3
- googleauth googleauth for impersonated types for impersonated credentials signing: should use IAMCredentials signBlob endpoint when impersonation is used failed HOT 3
- googleauth googleauth for external_account types sign(): should reject when no impersonation is used failed HOT 3
- googleauth googleauth for external_account types sign(): should use IAMCredentials endpoint when impersonation is used failed HOT 3
- googleauth googleauth for external_account_authorized_user types sign(): should reject failed HOT 3
- pack and install: should be able to use the d.ts failed HOT 1
- pack and install: should be able to webpack the library failed HOT 2
- Version 9.6.1 breaks @google-cloud/pubsub's emulator mode HOT 1
- pack and install: "after each" hook: cleanup staging for "should be able to use the d.ts" failed HOT 1
- Workload Identity with AWS & IMDSv2 use expired token
- Slow response times when obtaining Domain Wide Delegation token and during inbound Authorization header validation HOT 4
- samples for external-account: should acquire ADC for file-sourced creds failed HOT 3
- Isue
- Retrieving User Account MFA Flags HOT 4
- Unable to obtain token HOT 5
- Use ENVAR for service account impersonation
- Occasional timeout when requesting Google ID Token Verify HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from google-auth-library-nodejs.