Initial
This commit is contained in:
8
resources/app/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFromFile.js
generated
vendored
Normal file
8
resources/app/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFromFile.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import { promises as fsPromises } from "fs";
|
||||
import { getSSOTokenFilepath } from "./getSSOTokenFilepath";
|
||||
const { readFile } = fsPromises;
|
||||
export const getSSOTokenFromFile = async (id) => {
|
||||
const ssoTokenFilepath = getSSOTokenFilepath(id);
|
||||
const ssoTokenText = await readFile(ssoTokenFilepath, "utf8");
|
||||
return JSON.parse(ssoTokenText);
|
||||
};
|
||||
Reference in New Issue
Block a user