mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-27 00:13:03 +00:00
parent
fd2573c068
commit
6b2c289029
1 changed files with 5 additions and 1 deletions
|
@ -21,7 +21,11 @@ export default async (token: string): Promise<[User | null | undefined, AccessTo
|
|||
return [user, null];
|
||||
} else {
|
||||
const accessToken = await AccessTokens.findOne({
|
||||
hash: token.toLowerCase()
|
||||
where: [{
|
||||
hash: token.toLowerCase() // app
|
||||
}, {
|
||||
token: token // miauth
|
||||
}],
|
||||
});
|
||||
|
||||
if (accessToken == null) {
|
||||
|
|
Loading…
Reference in a new issue