-
Notifications
You must be signed in to change notification settings - Fork 383
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JWT Class import issue #1697
Comments
Hey @MorpheusZI, This sounds like a duplicate of this issue: Looking at the error message in the log you posted, it looks like somehow Perhaps this is an issue with the bundler or configuration you are using? |
@noamolat-fs this sounds like a bundler issue rather than an issue with this library. I’m not sure how else |
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 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 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. |
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: |
Closing this as it appears to be a build tool issue unrelated to this library. |
Thank you for pointing me in the right direction. I made it work 😁 ! |
using this library only to make google-spreadsheet works by using JWT from service account, unfortunately I get this error too. Building my own api call to get access_token from google is too much works. |
This library is currently is not designed for the browser. That can be tracked here: For browser usage today, I would recommend: |
I was trying to authenticate a ServiceAccount using JWT by doing doing this :
after doing that i got a console error saying "Uncaught TypeError: Class extends value undefined is not a constructor or null
at node_modules/agent-base/dist/index.js (index.ts:29:42)
at __require2 (chunk-3EJPJMEH.js?v=04702791:15:50)
at node_modules/https-proxy-agent/dist/index.js (index.ts:7:1)
at __require2 (chunk-3EJPJMEH.js?v=04702791:15:50)
at node_modules/gaxios/build/src/gaxios.js (gaxios.ts:33:1)
at __require2 (chunk-3EJPJMEH.js?v=04702791:15:50)
at node_modules/gaxios/build/src/index.js (index.ts:15:1)
at __require2 (chunk-3EJPJMEH.js?v=04702791:15:50)
at node_modules/gcp-metadata/build/src/index.js (index.ts:8:1)
at __require2 (chunk-3EJPJMEH.js?v=04702791:15:50)"
Notes: im using React,Typescript and a vite bundler
idek if its a bug or something so i put it on the "bug" type
read online somebody had this issue too said it was an import issue,didnt find any answers i could provide yall with some extra details if ya want
The text was updated successfully, but these errors were encountered: