I have a very stupid question: Is there
I have a very stupid question: Is there a way to programmatically create a user with password in convex?
createOrUpdateUser()ctx.runAction(api.auth.signIn, { ...params? })await ctx.db.insert("users", {
name: "John Doe",
});export const createUser = internalAction(async (ctx) => {
await ctx.runAction(api.auth.signIn, {
provider: "password",
params: {
flow: "signup",
email: "jeff@breff.com",
password: "password123",
},
});
});export const createUser = action(async (ctx) => {
await ctx.runAction(api.auth.signIn, {
provider: "password",
params: {
flow: "signUp",
email: "jeff@breff.com",
password: "password123",
},
});
});