kriasoft / kriasoft/web-auth-library
Can't seem to import library
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 117
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
Im trying to import the library using
`import { getAccessToken } from "web-auth-library/google";` but I'm getting any error
```
./pages/api/tts_edge.ts:2:32
Type error: Cannot find module 'web-auth-library/google' or its corresponding type declarations.
1 | import { NextRequest } from "next/server";
> 2 | import { getAccessToken } from "web-auth-library/google";
| ^
3 |
4 | export const config = {
5 | runtime: "experimental-edge",
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
```
What am I doing wrong?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the failing import in pages/api/tts_edge.ts and inspect how the package exposes its modules and type declarations. Reproduce the reported yarn build failure and verify whether the `web-auth-library/google` import is supported; done means the import resolves without the reported TypeScript error or the supported usage is documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- next.js, typescript
- Domain
- authentication
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100