/
opt
/
canhelp
/
node_modules
/
better-auth
/
dist
/
db
/
/opt/canhelp/node_modules/better-auth/dist/db
mkdir
upload
Name
Size
Mode
Actions
adapter-base.d.mts
425
0644
edit
dl
rm
adapter-base.mjs
994
0644
edit
dl
rm
adapter-base.mjs.map
2020
0644
edit
dl
rm
adapter-kysely.d.mts
328
0644
edit
dl
rm
adapter-kysely.mjs
846
0644
edit
dl
rm
adapter-kysely.mjs.map
1501
0644
edit
dl
rm
field-converter.d.mts
444
0644
edit
dl
rm
field-converter.mjs
627
0644
edit
dl
rm
field-converter.mjs.map
1423
0644
edit
dl
rm
field.d.mts
3703
0644
edit
dl
rm
get-migration.d.mts
804
0644
edit
dl
rm
get-migration.mjs
12311
0644
edit
dl
rm
get-migration.mjs.map
26016
0644
edit
dl
rm
get-schema.d.mts
359
0644
edit
dl
rm
get-schema.mjs
996
0644
edit
dl
rm
get-schema.mjs.map
2029
0644
edit
dl
rm
index.d.mts
1215
0644
edit
dl
rm
index.mjs
1830
0644
edit
dl
rm
index.mjs.map
385
0644
edit
dl
rm
internal-adapter.d.mts
639
0644
edit
dl
rm
internal-adapter.mjs
21762
0644
edit
dl
rm
internal-adapter.mjs.map
51002
0644
edit
dl
rm
schema.d.mts
2586
0644
edit
dl
rm
schema.mjs
4983
0644
edit
dl
rm
schema.mjs.map
10377
0644
edit
dl
rm
to-zod.d.mts
1583
0644
edit
dl
rm
to-zod.mjs
865
0644
edit
dl
rm
to-zod.mjs.map
3401
0644
edit
dl
rm
verification-token-storage.mjs
1084
0644
edit
dl
rm
verification-token-storage.mjs.map
2179
0644
edit
dl
rm
with-hooks.d.mts
1730
0644
edit
dl
rm
with-hooks.mjs
7140
0644
edit
dl
rm
with-hooks.mjs.map
16287
0644
edit
dl
rm
Edit:
/opt/canhelp/node_modules/better-auth/dist/db/verification-token-storage.mjs
(1084B)
import { base64Url } from "@better-auth/utils/base64"; import { createHash } from "@better-auth/utils/hash"; //#region src/db/verification-token-storage.ts const defaultKeyHasher = async (identifier) => { const hash = await createHash("SHA-256").digest(new TextEncoder().encode(identifier)); return base64Url.encode(new Uint8Array(hash), { padding: false }); }; 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; } 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; } //#endregion export { getStorageOption, processIdentifier }; //# sourceMappingURL=verification-token-storage.mjs.map
Save
cmd:
run