MCPcopy
hub / github.com/codeaashu/claude-code / checkStsCallerIdentity

Function checkStsCallerIdentity

src/utils/aws.ts:50–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48
49/** Throws if STS caller identity cannot be retrieved. */
50export async function checkStsCallerIdentity(): Promise<void> {
51 const { STSClient, GetCallerIdentityCommand } = await import(
52 '@aws-sdk/client-sts'
53 )
54 await new STSClient().send(new GetCallerIdentityCommand({}))
55}
56
57/**
58 * Clear AWS credential provider cache by forcing a refresh

Callers 2

runAwsAuthRefreshFunction · 0.85

Calls 1

sendMethod · 0.65

Tested by

no test coverage detected