nextauthjs / next-auth

Authentication for the Web.
https://authjs.dev
ISC License
24.96k stars 3.52k forks source link

Types for HTTP-based Email Provider Seem Unhappy #8601

Closed askkaz closed 9 months ago

askkaz commented 1 year ago

Question 💬

The type changes from version 4.22.1 to version 4.22.2 seem to not be compatible with https://authjs.dev/guides/providers/email-http

Screenshot 2023-09-15 at 8 53 24 AM

Does email need to be added as a valid type or am I typescripting wrong?

How to reproduce ☕️

Use the code sample from https://authjs.dev/guides/providers/email-http with typescript running.

Contributing 🙌🏽

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

andrew-r-thomas commented 1 year ago

I'm having the same issue

samtgarson commented 1 year ago

Me too, seems that a temporary fix is possible by filling in the missing empty options https://github.com/nextauthjs/next-auth/discussions/8487#discussioncomment-6948757

balazsorban44 commented 9 months ago

This will be fixed in the upcoming v5 release. see #9753

alexevladgabriel commented 9 months ago

@balazsorban44 I use the next-auth@beta and I would like to use the http approach. Is there a ETA?