@lucidcms/core
Version:
The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.
2 lines • 431 B
JavaScript
import e from"../../constants/constants.mjs";import t from"../auth/refresh-token/revoke-user-tokens.mjs";import n from"./checks/check-user-access.mjs";const r=async(r,i)=>{let a=await n(r,{id:i.userId});if(a.error)return a;let o=await t(r,{userId:i.userId,revokeReason:e.refreshTokenRevokeReasons.adminRevokeAll});return o.error?o:{error:void 0,data:void 0}};export{r as default};
//# sourceMappingURL=revoke-refresh-tokens.mjs.map