Async plugin config?

Hey iam trying to setup the oauth plugin via database values is there any way to make this happen?
2 Replies
ruohki
ruohkiOP2mo ago
drizzle does not support async queries and better auch does not support awaiting plugins
Julian
Julian2mo ago
I guess you could do something like this:
const createAuth = async () => {

// load what you need from db
const data = await db.select.from(dataTable)

return betterAuth({
// use your data here
})

}
const createAuth = async () => {

// load what you need from db
const data = await db.select.from(dataTable)

return betterAuth({
// use your data here
})

}

Did you find this page helpful?