mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-01 10:11:50 +02:00
♻️ Use synchronous id generation (#645)
This commit is contained in:
parent
27bbe6f947
commit
ffa7007184
9 changed files with 12 additions and 27 deletions
|
@ -1,13 +0,0 @@
|
|||
import { customAlphabet } from "nanoid/async";
|
||||
|
||||
export const nanoid = customAlphabet(
|
||||
"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",
|
||||
12,
|
||||
);
|
||||
|
||||
export const randomid = customAlphabet(
|
||||
"0123456789abcdefghijklmnopqrstuvwxyz",
|
||||
12,
|
||||
);
|
||||
|
||||
export const generateOtp = customAlphabet("0123456789", 6);
|
Loading…
Add table
Add a link
Reference in a new issue