kriasoft / kriasoft/web-auth-library

Can't seem to import library

Open
#18 9 comments 5 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.