mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 08:53:48 +01:00
parent
507602596e
commit
d3bcf8b1f7
@ -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 New Issue
Block a user