1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-03 00:56:00 +02:00
This commit is contained in:
syuilo
2019-04-16 01:05:21 +09:00
parent f44dc2dd05
commit bce8c5a315
3 changed files with 3 additions and 3 deletions

View File

@@ -1,3 +1,3 @@
import rndstr from 'rndstr';
export default () => `0${rndstr('a-zA-Z0-9', 15)}`;
export default () => rndstr('a-zA-Z0-9', 16);

View File

@@ -1 +1 @@
export default (token: string) => token.startsWith('0');
export default (token: string) => token.length === 16;