export const createUser = internalMutation({
args: {
username: v.string(),
password: v.string(),
email: v.optional(v.string()),
},
handler: async (ctx, { username, password, email }) => {
// Do we create the user already here?? we dont have hashed password yet
// Run action that will schedule our action handling hashing the password etc.
// ctx.scheduler.runAfter(...);
},
});
export const createUser = internalMutation({
args: {
username: v.string(),
password: v.string(),
email: v.optional(v.string()),
},
handler: async (ctx, { username, password, email }) => {
// Do we create the user already here?? we dont have hashed password yet
// Run action that will schedule our action handling hashing the password etc.
// ctx.scheduler.runAfter(...);
},
});