Add token generation

This commit is contained in:
Wessel Tip
2019-08-05 19:26:05 +02:00
parent 496cd5641c
commit 6f622cea94
44 changed files with 3574 additions and 124 deletions

6
tests/token.test.ts Normal file
View File

@@ -0,0 +1,6 @@
import { Token } from '../lib/snowflakey';
const Generator = new Token({ secret: 'VerySecretSecret1' });
const token = Generator.generate('107130754189766656');
console.log(token);