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

New Provider import Types #2515

Closed
ndom91 opened this issue Aug 11, 2021 · 3 comments
Closed

New Provider import Types #2515

ndom91 opened this issue Aug 11, 2021 · 3 comments
Assignees
Labels
bug Something isn't working good first issue Good issue to take for first time contributors TypeScript Issues relating to TypeScript

Comments

@ndom91
Copy link
Member

ndom91 commented Aug 11, 2021

Question 💬

Importing providers via the new method, i.e.

import GoogleProvider from 'next-auth/providers/google'

Requires some updating of the TS types.

How to reproduce ☕️

import GoogleProvider from 'next-auth/providers/google'

Contributing 🙌🏽

Yes, I am willing to help answer this question in a PR

@ndom91 ndom91 added question Ask how to do something or how something works TypeScript Issues relating to TypeScript labels Aug 11, 2021
@balazsorban44 balazsorban44 added bug Something isn't working and removed question Ask how to do something or how something works labels Aug 11, 2021
@balazsorban44
Copy link
Member

We will need to generate some module declarations, similarly to how we generated the src/providers/index.js file.

@balazsorban44
Copy link
Member

@ndom91 here is a version where I attempted to fix all these, have a look: next-auth@0.0.0-pr.2518.7bdfc7da

@balazsorban44
Copy link
Member

Reviewed with @lluia

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good issue to take for first time contributors TypeScript Issues relating to TypeScript
Projects
None yet
Development

No branches or pull requests

3 participants