-
I follow the drizzle adapter guide to setup my nextjs app + drizzle + turso. The problem here is that the documentation only talks about a And this is fine for local development, since i run libsql without an auth token. Im using these versions
This is my adapter config: import {DrizzleAdapter} from '@auth/drizzle-adapter';
import type {Adapter} from 'next-auth/adapters';
import {createUser, getUser} from './helpers';
import {database, schema} from '@/lib/db';
// @ts-ignore
export const adapter: Adapter = {
...DrizzleAdapter(database, {
usersTable: schema.user,
accountsTable: schema.account,
sessionsTable: schema.session,
verificationTokensTable: schema.verificationToken
}),
createUser: async data => {
return await createUser(data);
},
getUser: async id => {
return await getUser(id);
}
}; |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I forget to add the auth token environment variable to the vercel environment variables. It seem's like the AUTH_DRIZZLE_URL does nothing in this case |
Beta Was this translation helpful? Give feedback.
I forget to add the auth token environment variable to the vercel environment variables.
It seem's like the AUTH_DRIZZLE_URL does nothing in this case