Download node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js from sweet2004/bot: direct link, hf CLI and curl.
- Browser
- Download file 535 Bytes
-
https://huggingface.co/spaces/sweet2004/bot/resolve/main/node_modules/%40aws-sdk/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js
- Command line
-
hf download hf://spaces/sweet2004/bot/node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js
-
curl -L -o getSSOTokenFilepath.js https://huggingface.co/spaces/sweet2004/bot/resolve/main/node_modules/%40aws-sdk/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js
535 Bytes
| ; | |
| Object.defineProperty(exports, "__esModule", { value: true }); | |
| exports.getSSOTokenFilepath = void 0; | |
| const crypto_1 = require("crypto"); | |
| const path_1 = require("path"); | |
| const getHomeDir_1 = require("./getHomeDir"); | |
| const getSSOTokenFilepath = (id) => { | |
| const hasher = (0, crypto_1.createHash)("sha1"); | |
| const cacheName = hasher.update(id).digest("hex"); | |
| return (0, path_1.join)((0, getHomeDir_1.getHomeDir)(), ".aws", "sso", "cache", `${cacheName}.json`); | |
| }; | |
| exports.getSSOTokenFilepath = getSSOTokenFilepath; | |