Merge pull request #10949 from misskey-dev

This commit is contained in:
NoriDev 2023-08-02 16:33:24 +09:00
commit 3b8619cdee
4 changed files with 1229 additions and 858 deletions

View file

@ -12,7 +12,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()

View file

@ -13,7 +13,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) {

View file

@ -48,7 +48,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
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,

File diff suppressed because it is too large Load diff