@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{copy as e}from"../../i18n/copy.mjs";const t=t=>{let n=t?.sub||t?.id,r=t?.given_name||t?.first_name,i=t?.family_name||t?.last_name;return n?{error:void 0,data:{userId:n,firstName:r,lastName:i}}:{error:{status:400,name:e(`server:core.auth.oidc.user.info.incomplete.name`),message:e(`server:core.auth.oidc.user.info.incomplete.message`)},data:void 0}};export{t as default};
//# sourceMappingURL=default-user-info-mapper.mjs.map