Hi,
I've API that also has auth by JWT can I plug this next-auth to my API?
Thank you
I don't know what your API looks like but you can try creating a custom provider and configure it with your own API. You can find more about this in the provider docs.
I mean like I've API write with Nest.js that serving JWT Authentication. So can I use it with next-auth?
So JWT support is definitely something I want to add, and MIGHT make it in for 2.0 (undecided).
However, it's a big tricker to accommodate folks with an existing API, but is very useful to think about as it might shape how the implementation works and what callbacks are exposed.
Could you give a dummy example of what one of your JWT tokens looks like unencrypted?
A screenshot of what cookie it is stored in looks like in a browser inspector (e.g. name, path, prefix, expiry, etc) would also helpful.
As detailed an explanation as you can give as to how you would like this to work would be most helpful.

For my API I use Set-Cookie header with httpOnly and secure (on production)
@wiput1999 Thanks! I'll get back to this ticket in a bit!
I'm going to track this in #167 if that's alright.
I have linked back to this issue for reference, but am setting out thoughts there; feel free to chime in if you have any specific requirements or see needs that are not addressed by proposal!