/opt/canhelp/node_modules/better-auth/dist/db
NameSizeModeActions
adapter-base.d.mts4250644editdlrm
adapter-base.mjs9940644editdlrm
adapter-base.mjs.map20200644editdlrm
adapter-kysely.d.mts3280644editdlrm
adapter-kysely.mjs8460644editdlrm
adapter-kysely.mjs.map15010644editdlrm
field-converter.d.mts4440644editdlrm
field-converter.mjs6270644editdlrm
field-converter.mjs.map14230644editdlrm
field.d.mts37030644editdlrm
get-migration.d.mts8040644editdlrm
get-migration.mjs123110644editdlrm
get-migration.mjs.map260160644editdlrm
get-schema.d.mts3590644editdlrm
get-schema.mjs9960644editdlrm
get-schema.mjs.map20290644editdlrm
index.d.mts12150644editdlrm
index.mjs18300644editdlrm
index.mjs.map3850644editdlrm
internal-adapter.d.mts6390644editdlrm
internal-adapter.mjs217620644editdlrm
internal-adapter.mjs.map510020644editdlrm
schema.d.mts25860644editdlrm
schema.mjs49830644editdlrm
schema.mjs.map103770644editdlrm
to-zod.d.mts15830644editdlrm
to-zod.mjs8650644editdlrm
to-zod.mjs.map34010644editdlrm
verification-token-storage.mjs10840644editdlrm
verification-token-storage.mjs.map21790644editdlrm
with-hooks.d.mts17300644editdlrm
with-hooks.mjs71400644editdlrm
with-hooks.mjs.map162870644editdlrm
Edit: /opt/canhelp/node_modules/better-auth/dist/db/verification-token-storage.mjs.map (2179B)
{"version":3,"file":"verification-token-storage.mjs","names":[],"sources":["../../src/db/verification-token-storage.ts"],"sourcesContent":["import { base64Url } from \"@better-auth/utils/base64\";\nimport { createHash } from \"@better-auth/utils/hash\";\nimport type { StoreIdentifierOption } from \"../types\";\n\nconst defaultKeyHasher = async (identifier: string) => {\n\tconst hash = await createHash(\"SHA-256\").digest(\n\t\tnew TextEncoder().encode(identifier),\n\t);\n\treturn base64Url.encode(new Uint8Array(hash), { padding: false });\n};\n\nexport async function processIdentifier(\n\tidentifier: string,\n\toption: StoreIdentifierOption | undefined,\n): Promise {\n\tif (!option || option === \"plain\") {\n\t\treturn identifier;\n\t}\n\tif (option === \"hashed\") {\n\t\treturn defaultKeyHasher(identifier);\n\t}\n\tif (typeof option === \"object\" && \"hash\" in option) {\n\t\treturn option.hash(identifier);\n\t}\n\treturn identifier;\n}\n\nexport function getStorageOption(\n\tidentifier: string,\n\tconfig:\n\t\t| StoreIdentifierOption\n\t\t| {\n\t\t\t\tdefault: StoreIdentifierOption;\n\t\t\t\toverrides?: Record;\n\t\t }\n\t\t| undefined,\n): StoreIdentifierOption | undefined {\n\tif (!config) {\n\t\treturn undefined;\n\t}\n\n\tif (typeof config === \"object\" && \"default\" in config) {\n\t\tif (config.overrides) {\n\t\t\tfor (const [prefix, option] of Object.entries(config.overrides)) {\n\t\t\t\tif (identifier.startsWith(prefix)) {\n\t\t\t\t\treturn option;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn config.default;\n\t}\n\n\treturn config;\n}\n"],"mappings":";;;;AAIA,MAAM,mBAAmB,OAAO,eAAuB;CACtD,MAAM,OAAO,MAAM,WAAW,UAAU,CAAC,OACxC,IAAI,aAAa,CAAC,OAAO,WAAW,CACpC;AACD,QAAO,UAAU,OAAO,IAAI,WAAW,KAAK,EAAE,EAAE,SAAS,OAAO,CAAC;;AAGlE,eAAsB,kBACrB,YACA,QACkB;AAClB,KAAI,CAAC,UAAU,WAAW,QACzB,QAAO;AAER,KAAI,WAAW,SACd,QAAO,iBAAiB,WAAW;AAEpC,KAAI,OAAO,WAAW,YAAY,UAAU,OAC3C,QAAO,OAAO,KAAK,WAAW;AAE/B,QAAO;;AAGR,SAAgB,iBACf,YACA,QAOoC;AACpC,KAAI,CAAC,OACJ;AAGD,KAAI,OAAO,WAAW,YAAY,aAAa,QAAQ;AACtD,MAAI,OAAO,WACV;QAAK,MAAM,CAAC,QAAQ,WAAW,OAAO,QAAQ,OAAO,UAAU,CAC9D,KAAI,WAAW,WAAW,OAAO,CAChC,QAAO;;AAIV,SAAO,OAAO;;AAGf,QAAO"}