feat: add DELETE /access-tokens/:token

This commit is contained in:
Ali BARIN
2024-04-24 15:04:27 +00:00
parent b54afcd922
commit 2163be4227
3 changed files with 27 additions and 1 deletions

View File

@@ -27,6 +27,10 @@ class AccessToken extends Base {
},
},
});
async revoke() {
return await this.$query().patch({ revokedAt: new Date().toISOString() });
}
}
export default AccessToken;