@lucidcms/core
Version:
The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.
1 lines • 446 B
Source Map (JSON)
{"version":3,"file":"generate-token.mjs","names":[],"sources":["../../../src/utils/share-link/generate-token.ts"],"sourcesContent":["import { randomBytes } from \"node:crypto\";\n\n/**\n * Generate a share token\n */\nconst generateShareToken = () => {\n\treturn randomBytes(9).toString(\"base64url\").slice(0, 12);\n};\n\nexport default generateShareToken;\n"],"mappings":"0CAKA,MAAM,MACE,EAAY,CAAC,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,MAAM,EAAG,EAAE"}