Add pagination, complete organization routes
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user