Skip to content
Snippets Groups Projects
Commit 6b2c2890 authored by syuilo's avatar syuilo
Browse files

fix(api): Fix #6419

Close #6434
parent fd2573c0
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment