Skip to content

Commit

Permalink
他人のアクセストークンはrevoke出来ないように
Browse files Browse the repository at this point in the history
  • Loading branch information
mei23 committed Jul 12, 2021
1 parent b028c36 commit 93d9df0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/server/api/endpoints/i/revoke-token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export const meta = {

export default define(meta, async (ps, user) => {
await AccessToken.remove({
_id: ps.tokenId
_id: ps.tokenId,
userId: user._id
});
});

0 comments on commit 93d9df0

Please sign in to comment.