Merge pull request #10949 from misskey-dev
This commit is contained in:
commit
3b8619cdee
|
@ -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()
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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,
|
||||
|
|
2081
pnpm-lock.yaml
2081
pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue