Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/simstudioai/sim
/ auth.test.ts
File
auth.test.ts
apps/sim/lib/api-key/auth.test.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
/**
2
* Tests
for
API key authentication utilities.
3
*
4
* Tests cover:
Callers
nothing calls this directly
Calls
11
isEncryptedKey
Function · 0.90
createEncryptedApiKey
Function · 0.90
createLegacyApiKey
Function · 0.90
isValidApiKeyFormat
Function · 0.90
getApiKeyLast4
Function · 0.90
formatApiKeyForDisplay
Function · 0.90
isEncryptedApiKeyFormat
Function · 0.85
isLegacyApiKeyFormat
Function · 0.85
generateApiKey
Function · 0.85
generateEncryptedApiKey
Function · 0.85
toString
Method · 0.45
Tested by
no test coverage detected