mirror of
https://github.com/documenso/documenso.git
synced 2026-07-24 00:43:40 +10:00
feat: certificate qrcode (#1755)
Adds document access tokens and QR code functionality to enable secure document sharing via URLs. It includes a new document access page that allows viewing and downloading documents through tokenized links.
This commit is contained in:
@@ -3,3 +3,9 @@ import { customAlphabet } from 'nanoid';
|
||||
export const alphaid = customAlphabet('0123456789abcdefghijklmnopqrstuvwxyz', 21);
|
||||
|
||||
export { nanoid } from 'nanoid';
|
||||
|
||||
export const fancyId = customAlphabet('abcdefhiklmnorstuvwxyz', 16);
|
||||
|
||||
export const prefixedId = (prefix: string, length = 16) => {
|
||||
return `${prefix}_${fancyId(length)}`;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user