Hey I looking for the documentation of the `get()` methods
I ran into this code https://github.com/nextauthjs/next-auth/blob/main/packages/adapter-drizzle/src/lib/sqlite.ts#L105 where they are using
get()
a lot.
I could find the documentation for it?
anyone as any idea what it does or how to use it?GitHub
next-auth/packages/adapter-drizzle/src/lib/sqlite.ts at main · next...
Authentication for the Web. Contribute to nextauthjs/next-auth development by creating an account on GitHub.
3 Replies
get()
is specific to SQLite. It executes the promise. They probably don't want to use await in their implementation and just return the promise. Not familiar with it, but that's what it looks likeWeird…. I can see that get still returns a promise
exactly, without the call to
get()
if you don't await it, an object will be returned
A class to be more specific