Next.js Discord

Discord Forum

How to use the drizzle adapter?

Unanswered
oxmaster posted this in #help-forum
Open in Discord
The problem is that an error is displayed when connecting the adapter.

8 Replies

The problem is that the adapter on github defines the user tables inside
and then when "installing", I am told to define the same tables
Firstly, how can I get the "AdapterAccount" type if I didn't install "@auth/core". Do I need to install it?
Another question is, if this is defined inside the adapter, how do I define my user table if I don't want to use the built-in one?
Or is the adapter on github an example of its implementation? Then the question is why should I download it at all. With my own "users" table, do I need to create my own adapter and download "@auth/core"?
The error is not relevant, as it was fixed a long time ago, but vs code decided that it exists