Download node_modules/@aws-sdk/shared-ini-file-loader/dist-es/getSSOTokenFilepath.js from sweet2004/bot: direct link, hf CLI and curl.
- Browser
- Download file 327 Bytes
-
https://huggingface.co/spaces/sweet2004/bot/resolve/main/node_modules/%40aws-sdk/shared-ini-file-loader/dist-es/getSSOTokenFilepath.js
- Command line
-
hf download hf://spaces/sweet2004/bot/node_modules/@aws-sdk/shared-ini-file-loader/dist-es/getSSOTokenFilepath.js
-
curl -L -o getSSOTokenFilepath.js https://huggingface.co/spaces/sweet2004/bot/resolve/main/node_modules/%40aws-sdk/shared-ini-file-loader/dist-es/getSSOTokenFilepath.js
327 Bytes
| import { createHash } from "crypto"; | |
| import { join } from "path"; | |
| import { getHomeDir } from "./getHomeDir"; | |
| export const getSSOTokenFilepath = (id) => { | |
| const hasher = createHash("sha1"); | |
| const cacheName = hasher.update(id).digest("hex"); | |
| return join(getHomeDir(), ".aws", "sso", "cache", `${cacheName}.json`); | |
| }; | |