diff options
| author | misskey-release-bot[bot] <157398866+misskey-release-bot[bot]@users.noreply.github.com> | 2025-03-06 10:31:34 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-06 10:31:34 +0000 |
| commit | 4d31c0b1dee3c6198e187a8153a3bf52eb801996 (patch) | |
| tree | 514d45bea56be838cb2d0f7d8f6e554ce13fe20d /packages/backend/src/server/api/AuthenticateService.ts | |
| parent | Merge pull request #15507 from misskey-dev/develop (diff) | |
| parent | Release: 2025.3.0 (diff) | |
| download | misskey-4d31c0b1dee3c6198e187a8153a3bf52eb801996.tar.gz misskey-4d31c0b1dee3c6198e187a8153a3bf52eb801996.tar.bz2 misskey-4d31c0b1dee3c6198e187a8153a3bf52eb801996.zip | |
Merge pull request #15585 from misskey-dev/develop
Release: 2025.3.0
Diffstat (limited to 'packages/backend/src/server/api/AuthenticateService.ts')
| -rw-r--r-- | packages/backend/src/server/api/AuthenticateService.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/backend/src/server/api/AuthenticateService.ts b/packages/backend/src/server/api/AuthenticateService.ts index 690ff2e022..601618553e 100644 --- a/packages/backend/src/server/api/AuthenticateService.ts +++ b/packages/backend/src/server/api/AuthenticateService.ts @@ -11,7 +11,7 @@ import type { MiAccessToken } from '@/models/AccessToken.js'; import { MemoryKVCache } from '@/misc/cache.js'; import type { MiApp } from '@/models/App.js'; import { CacheService } from '@/core/CacheService.js'; -import isNativeToken from '@/misc/is-native-token.js'; +import { isNativeUserToken } from '@/misc/token.js'; import { bindThis } from '@/decorators.js'; export class AuthenticationError extends Error { @@ -46,7 +46,7 @@ export class AuthenticateService implements OnApplicationShutdown { return [null, null]; } - if (isNativeToken(token)) { + if (isNativeUserToken(token)) { const user = await this.cacheService.localUserByNativeTokenCache.fetch(token, () => this.usersRepository.findOneBy({ token }) as Promise<MiLocalUser | null>); |