blob: 5d37cba26d2057708e87288d1f1f3b06fb9e11eb (
plain)
1
2
3
4
5
6
7
8
9
10
|
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { secureRndstr } from '@/misc/secure-rndstr.js';
export const generateNativeUserToken = () => secureRndstr(16);
export const isNativeUserToken = (token: string) => token.length === 16;
|