Add pagination, complete organization routes

This commit is contained in:
2024-12-20 23:14:32 +05:30
parent a584fc91b5
commit cc2665544b
6 changed files with 190 additions and 6 deletions

View File

@@ -5,7 +5,7 @@ import { CreateTokenInput, tokenModel } from "./token.schema";
export async function createToken(input: CreateTokenInput, tenantId: string) {
const tokenId = generateId();
const newToken = await generateToken();
const tokenHash = await bcrypt.hash(newToken, 10);
const tokenHash = await bcrypt.hash(newToken, 5);
const tokenInDb = await tokenModel.create({
tenantId: tenantId,