Download node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js from sweet2004/bot: direct link, hf CLI and curl.
- Browser
- Download file 526 Bytes
-
https://huggingface.co/spaces/sweet2004/bot/resolve/main/node_modules/%40aws-sdk/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js
- Command line
-
hf download hf://spaces/sweet2004/bot/node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js
-
curl -L -o getSSOTokenFromFile.js https://huggingface.co/spaces/sweet2004/bot/resolve/main/node_modules/%40aws-sdk/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js
526 Bytes
| ; | |
| Object.defineProperty(exports, "__esModule", { value: true }); | |
| exports.getSSOTokenFromFile = void 0; | |
| const fs_1 = require("fs"); | |
| const getSSOTokenFilepath_1 = require("./getSSOTokenFilepath"); | |
| const { readFile } = fs_1.promises; | |
| const getSSOTokenFromFile = async (id) => { | |
| const ssoTokenFilepath = (0, getSSOTokenFilepath_1.getSSOTokenFilepath)(id); | |
| const ssoTokenText = await readFile(ssoTokenFilepath, "utf8"); | |
| return JSON.parse(ssoTokenText); | |
| }; | |
| exports.getSSOTokenFromFile = getSSOTokenFromFile; | |