初始化环境文件
This commit is contained in:
8
node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFilepath.js
generated
vendored
Normal file
8
node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFilepath.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
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`);
|
||||
};
|
||||
Reference in New Issue
Block a user