kriasoft / kriasoft/web-auth-library
getAccessToken not working on Cloudflare Workers
- Dominant language
- TypeScript
- Stars
- 117
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Description
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?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at the getAccessToken entry point and inspect how the credentials, scope, and waitUntil callback are used in a Cloudflare Worker. Reproduce the shown call in the worker environment and compare it with the local behavior; done means the access token is obtained without the Illegal invocation error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- google-cloud, typescript
- Domain
- authentication, cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100