Edit: /tmp/tsx-0/17887-8300f247877f188f770cef694ed02ffc74422318 (2958B)
{"code":"__filename=\"/opt/canhelp/node_modules/better-auth/dist/db/verification-token-storage.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 verification_token_storage_exports={};__export(verification_token_storage_exports,{getStorageOption:()=>getStorageOption,processIdentifier:()=>processIdentifier});module.exports=__toCommonJS(verification_token_storage_exports);var import_base64=require(\"@better-auth/utils/base64\");var import_hash=require(\"@better-auth/utils/hash\");const defaultKeyHasher=__name(async identifier=>{const hash=await(0,import_hash.createHash)(\"SHA-256\").digest(new TextEncoder().encode(identifier));return import_base64.base64Url.encode(new Uint8Array(hash),{padding:false})},\"defaultKeyHasher\");async function processIdentifier(identifier,option){if(!option||option===\"plain\")return identifier;if(option===\"hashed\")return defaultKeyHasher(identifier);if(typeof option===\"object\"&&\"hash\"in option)return option.hash(identifier);return identifier}__name(processIdentifier,\"processIdentifier\");function getStorageOption(identifier,config){if(!config)return;if(typeof config===\"object\"&&\"default\"in config){if(config.overrides){for(const[prefix,option]of Object.entries(config.overrides))if(identifier.startsWith(prefix))return option}return config.default}return config}__name(getStorageOption,\"getStorageOption\");0&&(module.exports={getStorageOption,processIdentifier});\n})()\n","warnings":[],"map":{"version":3,"mappings":";suBAAA,yPAA0B,qCAC1B,gBAA2B,mCAG3B,MAAM,iBAAmB,aAAO,YAAe,CAC9C,MAAM,KAAO,QAAM,wBAAW,SAAS,EAAE,OAAO,IAAI,YAAY,EAAE,OAAO,UAAU,CAAC,EACpF,OAAO,wBAAU,OAAO,IAAI,WAAW,IAAI,EAAG,CAAE,QAAS,KAAM,CAAC,CACjE,EAHyB,oBAIzB,eAAe,kBAAkB,WAAY,OAAQ,CACpD,GAAI,CAAC,QAAU,SAAW,QAAS,OAAO,WAC1C,GAAI,SAAW,SAAU,OAAO,iBAAiB,UAAU,EAC3D,GAAI,OAAO,SAAW,UAAY,SAAU,OAAQ,OAAO,OAAO,KAAK,UAAU,EACjF,OAAO,UACR,CALe,8CAMf,SAAS,iBAAiB,WAAY,OAAQ,CAC7C,GAAI,CAAC,OAAQ,OACb,GAAI,OAAO,SAAW,UAAY,YAAa,OAAQ,CACtD,GAAI,OAAO,UAAW,CACrB,SAAW,CAAC,OAAQ,MAAM,IAAK,OAAO,QAAQ,OAAO,SAAS,EAAG,GAAI,WAAW,WAAW,MAAM,EAAG,OAAO,MAC5G,CACA,OAAO,OAAO,OACf,CACA,OAAO,MACR,CATS","names":[],"ignoreList":[],"sources":["/opt/canhelp/node_modules/better-auth/dist/db/verification-token-storage.mjs"],"sourcesContent":[null]}}