Edit: /tmp/tsx-0/17887-dfdccb437fa1e165213a72a9bad723f182ddfac9 (2413B)
{"code":"__filename=\"/opt/canhelp/node_modules/better-auth/dist/plugins/email-otp/utils.mjs\";(()=>{\nvar __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __name=(target,value)=>__defProp(target,\"name\",{value,configurable:true});var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:true})};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from===\"object\"||typeof from===\"function\"){for(let key of __getOwnPropNames(from))if(!__hasOwnProp.call(to,key)&&key!==except)__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable})}return to};var __toCommonJS=mod=>__copyProps(__defProp({},\"__esModule\",{value:true}),mod);var utils_exports={};__export(utils_exports,{defaultKeyHasher:()=>defaultKeyHasher,splitAtLastColon:()=>splitAtLastColon,toOTPIdentifier:()=>toOTPIdentifier});module.exports=__toCommonJS(utils_exports);var import_base64=require(\"@better-auth/utils/base64\");var import_hash=require(\"@better-auth/utils/hash\");function toOTPIdentifier(type,email){return`${type}-otp-${email}`}__name(toOTPIdentifier,\"toOTPIdentifier\");const defaultKeyHasher=__name(async otp=>{const hash=await(0,import_hash.createHash)(\"SHA-256\").digest(new TextEncoder().encode(otp));return import_base64.base64Url.encode(new Uint8Array(hash),{padding:false})},\"defaultKeyHasher\");function splitAtLastColon(input){const idx=input.lastIndexOf(\":\");if(idx===-1)return[input,\"\"];return[input.slice(0,idx),input.slice(idx+1)]}__name(splitAtLastColon,\"splitAtLastColon\");0&&(module.exports={defaultKeyHasher,splitAtLastColon,toOTPIdentifier});\n})()\n","warnings":[],"map":{"version":3,"mappings":";suBAAA,4NAA0B,qCAC1B,gBAA2B,mCAG3B,SAAS,gBAAgB,KAAM,MAAO,CACrC,MAAO,GAAG,IAAI,QAAQ,KAAK,EAC5B,CAFS,0CAGT,MAAM,iBAAmB,aAAO,KAAQ,CACvC,MAAM,KAAO,QAAM,wBAAW,SAAS,EAAE,OAAO,IAAI,YAAY,EAAE,OAAO,GAAG,CAAC,EAC7E,OAAO,wBAAU,OAAO,IAAI,WAAW,IAAI,EAAG,CAAE,QAAS,KAAM,CAAC,CACjE,EAHyB,oBAIzB,SAAS,iBAAiB,MAAO,CAChC,MAAM,IAAM,MAAM,YAAY,GAAG,EACjC,GAAI,MAAQ,GAAI,MAAO,CAAC,MAAO,EAAE,EACjC,MAAO,CAAC,MAAM,MAAM,EAAG,GAAG,EAAG,MAAM,MAAM,IAAM,CAAC,CAAC,CAClD,CAJS","names":[],"ignoreList":[],"sources":["/opt/canhelp/node_modules/better-auth/dist/plugins/email-otp/utils.mjs"],"sourcesContent":[null]}}