mirror of
https://github.com/docmost/docmost.git
synced 2025-11-17 17:51:11 +10:00
implement new invitation system
* fix comments on the frontend * move jwt token service to its own module * other fixes and updates
This commit is contained in:
5
apps/server/src/helpers/nanoid.utils.ts
Normal file
5
apps/server/src/helpers/nanoid.utils.ts
Normal file
@ -0,0 +1,5 @@
|
||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||
const { customAlphabet } = require('fix-esm').require('nanoid');
|
||||
|
||||
const alphabet = '0123456789abcdefghijklmnopqrstuvwxyz';
|
||||
export const nanoIdGen = customAlphabet(alphabet, 10);
|
||||
Reference in New Issue
Block a user