* feature(auth): replace clerk.com with custom auth * minor fixes * remove notification preferences * decrease live events interval fix(api): cookies.. # Conflicts: # .gitignore # apps/api/src/index.ts # apps/dashboard/src/app/providers.tsx # packages/trpc/src/trpc.ts
6 lines
123 B
TypeScript
6 lines
123 B
TypeScript
import { nanoid } from 'nanoid';
|
|
|
|
export function generateSecureId(prefix: string) {
|
|
return `${prefix}_${nanoid(18)}`;
|
|
}
|