MCPcopy Create free account
hub / github.com/SmartThingsCommunity/smartthings-cli / sha256

Function sha256

src/lib/login-authenticator.ts:106–106  ·  view source on GitHub ↗
(data: BinaryLike)

Source from the content-addressed store, hash-verified

104 }
105
106 const sha256 = (data: BinaryLike): Buffer => createHash('sha256').update(data).digest()
107
108 const writeCredentialsFile = (credentialsFileData: CredentialsFileData): void => {
109 writeFileSync(credentialsFile, JSON.stringify(credentialsFileData, null, 4))

Callers 1

loginFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected