mirror of
https://github.com/documenso/documenso.git
synced 2025-11-22 04:31:39 +10:00
wip
This commit is contained in:
5
packages/auth/server/lib/tokens.ts
Normal file
5
packages/auth/server/lib/tokens.ts
Normal file
@ -0,0 +1,5 @@
|
||||
import { customAlphabet } from 'nanoid';
|
||||
|
||||
const sessionTokenId = customAlphabet('abcdefhiklmnorstuvwxz', 10);
|
||||
|
||||
export const createSessionToken = (length = 10) => `session_${sessionTokenId(length)}` as const;
|
||||
Reference in New Issue
Block a user