mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-10-25 18:54:52 +00:00
10 lines
298 B
TypeScript
10 lines
298 B
TypeScript
/*
|
|
* 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;
|