Download node_modules/@aws-sdk/token-providers/dist-cjs/writeSSOTokenToFile.js from sweet2004/bot: direct link, hf CLI and curl.
- Browser
- Download file 549 Bytes
-
https://huggingface.co/spaces/sweet2004/bot/resolve/main/node_modules/%40aws-sdk/token-providers/dist-cjs/writeSSOTokenToFile.js
- Command line
-
hf download hf://spaces/sweet2004/bot/node_modules/@aws-sdk/token-providers/dist-cjs/writeSSOTokenToFile.js
-
curl -L -o writeSSOTokenToFile.js https://huggingface.co/spaces/sweet2004/bot/resolve/main/node_modules/%40aws-sdk/token-providers/dist-cjs/writeSSOTokenToFile.js
549 Bytes
| ; | |
| Object.defineProperty(exports, "__esModule", { value: true }); | |
| exports.writeSSOTokenToFile = void 0; | |
| const shared_ini_file_loader_1 = require("@aws-sdk/shared-ini-file-loader"); | |
| const fs_1 = require("fs"); | |
| const { writeFile } = fs_1.promises; | |
| const writeSSOTokenToFile = (id, ssoToken) => { | |
| const tokenFilepath = (0, shared_ini_file_loader_1.getSSOTokenFilepath)(id); | |
| const tokenString = JSON.stringify(ssoToken, null, 2); | |
| return writeFile(tokenFilepath, tokenString); | |
| }; | |
| exports.writeSSOTokenToFile = writeSSOTokenToFile; | |