New source found from dndbeyond.com

This commit is contained in:
2026-07-08 01:00:09 -07:00
parent 9a983a6d7b
commit dcefa0d2f2
2865 changed files with 222467 additions and 49053 deletions
+12
View File
@@ -0,0 +1,12 @@
import { createCache } from "./lib/createCache.js";
import { makeAuth } from "./lib/makeAuth.js";
import { mutexifyAuth } from "./lib/mutexifyAuth.js";
import { version } from "./lib/version.js";
const STORAGE_KEY = "_kobold-token";
const key = (input) => Promise.resolve(`${STORAGE_KEY}-${version(input)}`);
const cache = createCache(globalThis.localStorage);
const auth = makeAuth(cache, key);
export const getAuth = mutexifyAuth(auth);
export const getUser = (input, init) => getAuth(input, init).then(({ token }) => token?.payload ?? null);
export const getJwt = (input, init) => getAuth(input, init).then(({ jwt }) => jwt);
//# sourceMappingURL=browserAuth.js.map