Verification table not populating

I am unsure what is happening at the moment but my emailVerification process works as intended except for it not populating a new row in the verification table. I'm not sure what would be causing this issue as I used the drizzle-kit to generate the schemas.
emailAndPassword: {
enabled: true,
requireEmailVerification: true,
minPasswordLength: 8,
maxPasswordLength: 128,
sendResetPassword: async ({ user, url }) => {
await sendEmail({
to: user.email,
subject: "Reset your password!",
body: `Click the link to reset your password: ${url}`,
});
},
resetPasswordTokenExpiresIn: 3600,
},
emailVerification: {
sendVerificationEmail: async ({ user, url }) => {
await sendEmail({
to: user.email,
subject: "Verify your email!",
body: `Click the verify your email: ${url}`,
});
},
sendOnSignUp: true,
autoSignInAfterVerification: true,
expiresIn: 3600, // 1 hour
},
emailAndPassword: {
enabled: true,
requireEmailVerification: true,
minPasswordLength: 8,
maxPasswordLength: 128,
sendResetPassword: async ({ user, url }) => {
await sendEmail({
to: user.email,
subject: "Reset your password!",
body: `Click the link to reset your password: ${url}`,
});
},
resetPasswordTokenExpiresIn: 3600,
},
emailVerification: {
sendVerificationEmail: async ({ user, url }) => {
await sendEmail({
to: user.email,
subject: "Verify your email!",
body: `Click the verify your email: ${url}`,
});
},
sendOnSignUp: true,
autoSignInAfterVerification: true,
expiresIn: 3600, // 1 hour
},
1 Reply
Sean
SeanOP2mo ago
This is my table as well.
export const verification = pgTable("verification", {
id: uuid("id").defaultRandom().primaryKey().notNull(),
identifier: text("identifier").notNull(),
value: text("value").notNull(),
expiresAt: timestamp("expires_at").notNull(),
createdAt: timestamp("created_at"),
updatedAt: timestamp("updated_at"),
});
export const verification = pgTable("verification", {
id: uuid("id").defaultRandom().primaryKey().notNull(),
identifier: text("identifier").notNull(),
value: text("value").notNull(),
expiresAt: timestamp("expires_at").notNull(),
createdAt: timestamp("created_at"),
updatedAt: timestamp("updated_at"),
});
I am using drizzleORM

Did you find this page helpful?