diff --git a/locales/index.d.ts b/locales/index.d.ts index 063cd58e89..6ff7239de3 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -1065,10 +1065,10 @@ export interface Locale { "goToMisskey": string; "additionalEmojiDictionary": string; "installed": string; + "branding": string; "additionalPermissionsForFlash": string; "thisFlashRequiresTheFollowingPermissions": string; "doYouWantToAllowThisPlayToAccessYourAccount": string; - "branding": string; "_initialAccountSetting": { "accountCreated": string; "letsStartAccountSetup": string; diff --git a/packages/backend/src/core/CacheService.ts b/packages/backend/src/core/CacheService.ts index 1a66c19715..c00fb4612d 100644 --- a/packages/backend/src/core/CacheService.ts +++ b/packages/backend/src/core/CacheService.ts @@ -7,7 +7,7 @@ import { DI } from '@/di-symbols.js'; import { UserEntityService } from '@/core/entities/UserEntityService.js'; import { bindThis } from '@/decorators.js'; import { StreamMessages } from '@/server/api/stream/types.js'; -import type { FlashToken } from '@/misc/flash-token'; +import type { FlashToken } from '@/misc/flash-token.js'; import type { OnApplicationShutdown } from '@nestjs/common'; @Injectable() diff --git a/packages/backend/src/server/api/AuthenticateService.ts b/packages/backend/src/server/api/AuthenticateService.ts index 89283a4b52..79cd4f040d 100644 --- a/packages/backend/src/server/api/AuthenticateService.ts +++ b/packages/backend/src/server/api/AuthenticateService.ts @@ -8,7 +8,7 @@ import type { App } from '@/models/entities/App.js'; import { CacheService } from '@/core/CacheService.js'; import isNativeToken from '@/misc/is-native-token.js'; import { bindThis } from '@/decorators.js'; -import type { FlashToken } from '@/misc/flash-token'; +import type { FlashToken } from '@/misc/flash-token.js'; export class AuthenticationError extends Error { constructor(message: string) { diff --git a/packages/backend/src/server/api/endpoints/flash/gen-token.ts b/packages/backend/src/server/api/endpoints/flash/gen-token.ts index bcbce360f1..b0ef81ddc2 100644 --- a/packages/backend/src/server/api/endpoints/flash/gen-token.ts +++ b/packages/backend/src/server/api/endpoints/flash/gen-token.ts @@ -43,7 +43,7 @@ export default class extends Endpoint { private cacheService: CacheService, ) { super(meta, paramDef, async (ps, me) => { - const token = secureRndstr(32, true); + const token = secureRndstr(32); await this.cacheService.flashAccessTokensCache.set(token, { user: me, permissions: ps.permissions,