mehedi
mehedi
CCConvex Community
Created by mehedi on 5/17/2025 in #support-community
how can I call these actions inside crypto verifySecret function?
"use node";

import { action } from "./_generated/server";
import { v } from "convex/values";
import hasher from "wordpress-hash-node";

export const hashPassword = action({
args: { password: v.string() },
handler: async (ctx, args) => {
const hash = hasher.HashPassword(args.password);
return hash;
},
});

export const checkPassword = action({
args: { password: v.string(), hash: v.string() },
handler: async (ctx, args) => {
const checked = hasher.CheckPassword(args.password, args.hash);
return checked;
},
});
"use node";

import { action } from "./_generated/server";
import { v } from "convex/values";
import hasher from "wordpress-hash-node";

export const hashPassword = action({
args: { password: v.string() },
handler: async (ctx, args) => {
const hash = hasher.HashPassword(args.password);
return hash;
},
});

export const checkPassword = action({
args: { password: v.string(), hash: v.string() },
handler: async (ctx, args) => {
const checked = hasher.CheckPassword(args.password, args.hash);
return checked;
},
});
1 replies
CCConvex Community
Created by mehedi on 5/15/2025 in #support-community
how can I implement username/email and password auth?
I also want to allow users to enter username in email field while sign in or sign up
6 replies
CCConvex Community
Created by mehedi on 5/10/2025 in #support-community
is there any documentation or examples on convex auth + tanstack start?
I am getting this below error Cannot destructure property 'signIn' of 'useAuthActions(...)' as it is undefined.
2 replies