Skip to content
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

getAccessToken not working on Cloudflare Workers #28

Open
oriollpz opened this issue Apr 22, 2024 · 3 comments
Open

getAccessToken not working on Cloudflare Workers #28

oriollpz opened this issue Apr 22, 2024 · 3 comments

Comments

@oriollpz
Copy link

The function

const accessToken = await getAccessToken({
      credentials: credentials,
      scope: "https://www.googleapis.com/auth/cloud-platform",
      waitUntil: c.executionCtx.waitUntil,
});

Isn't working for me, it works locally, but when I use it in the worker it says this: TypeError: Illegal invocation

Anyone faced the same problem?

@zewelor
Copy link

zewelor commented May 22, 2024

I have the same problem, did you solve it ?

@oriollpz
Copy link
Author

@zewelor I stopped using this library and I used this instead.

@zewelor
Copy link

zewelor commented May 22, 2024

@zewelor I stopped using this library and I used this instead.

Hmm i see link to this ( web-auth-library ) library

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants