mirror of
https://github.com/Wessel/Snowflakey.git
synced 2026-06-08 14:19:02 +02:00
Add token generation
This commit is contained in:
6
tests/token.test.ts
Normal file
6
tests/token.test.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { Token } from '../lib/snowflakey';
|
||||
|
||||
const Generator = new Token({ secret: 'VerySecretSecret1' });
|
||||
const token = Generator.generate('107130754189766656');
|
||||
|
||||
console.log(token);
|
||||
Reference in New Issue
Block a user