13 lines
321 B
TypeScript
13 lines
321 B
TypeScript
import { customAlphabet } from "nanoid"
|
|
|
|
export const generateShortId = (): string => {
|
|
const alphabet =
|
|
"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
|
|
const customNanoid = customAlphabet(alphabet, 6)
|
|
return customNanoid()
|
|
}
|
|
|
|
export * from "./api"
|
|
export * from "./auth"
|
|
export * from "./security"
|