[BUG]: Neon serverless driver accepts authToken
as a promise, but the $withAuth
does not
#3597
Closed
1 task done
Report hasn't been filed before.
What version of
drizzle-orm
are you using?0.36.4
What version of
drizzle-kit
are you using?0.27.1
Other packages
No response
Describe the Bug
Description
The
@neondatabase/serverless
driver allows to pass inauthToken
as functions, however, the recently introduced$withAuth
only acceptsstring
.e.g.
Working example
Bugged example
For this particular example, it doesn't seem too worrisome, but
drizzle-orm
should still use the same types as the Neon driver when possible, which seems like the case here 👀The text was updated successfully, but these errors were encountered: