Skip to content

Using the Loops provider generates TS errors #12897

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

Open
gfpacheco opened this issue Apr 23, 2025 · 1 comment
Open

Using the Loops provider generates TS errors #12897

gfpacheco opened this issue Apr 23, 2025 · 1 comment
Labels
bug Something isn't working providers triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.

Comments

@gfpacheco
Copy link

Provider type

Loops

Environment

  System:
    OS: macOS 15.3.2
    CPU: (10) arm64 Apple M1 Max
    Memory: 1.81 GB / 64.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.14.0 - ~/.nvm/versions/node/v22.14.0/bin/node
    Yarn: 1.22.22 - ~/.nvm/versions/node/v22.14.0/bin/yarn
    npm: 10.9.2 - ~/.nvm/versions/node/v22.14.0/bin/npm
    pnpm: 10.6.3 - ~/Library/pnpm/pnpm
  Browsers:
    Chrome: 135.0.7049.97
    Edge: 126.0.2592.87
    Safari: 18.3.1
  npmPackages:
    @auth/unstorage-adapter: ^2.0.0 => 2.9.0
    next: latest => 15.3.1
    next-auth: beta => 5.0.0-beta.26
    react: ^18.2.0 => 18.3.1

Reproduction URL

https://github.com/gfpacheco/next-auth-loops-bug

Describe the issue

Using the Loops provider generates TypeScript errors:

Type 'LoopsConfig' is not assignable to type 'Provider'.
  Type 'LoopsConfig' is not assignable to type 'EmailConfig & InternalProviderOptions'.
    Type 'LoopsConfig' is not assignable to type 'EmailConfig'.
      Types of property 'sendVerificationRequest' are incompatible.
        Type '(params: Params) => Promise<void>' is not assignable to type '(params: EmailProviderSendVerificationRequestParams) => Awaitable<void>'.
          Types of parameters 'params' and 'params' are incompatible.
            Type 'EmailProviderSendVerificationRequestParams' is not assignable to type 'Params'.
              Type 'EmailProviderSendVerificationRequestParams' is not assignable to type '{ provider: LoopsConfig; }'.
                Types of property 'provider' are incompatible.
                  Property 'transactionalId' is missing in type 'EmailConfig' but required in type 'LoopsConfig'.

How to reproduce

Just try to use the Loops provider, TypeScript will say the types are wrong.

Expected behavior

Using the Loops provider shouldn't trigger any TS errors.

@gfpacheco gfpacheco added bug Something isn't working providers triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime. labels Apr 23, 2025
@lassiter
Copy link

lassiter commented May 7, 2025

we are seeing this as well in release 5.0.0-beta.27 still

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working providers triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
Projects
None yet
Development

No branches or pull requests

2 participants