MCPcopy
hub / github.com/simstudioai/sim / getApiKeyLast4

Function getApiKeyLast4

apps/sim/lib/api-key/auth.ts:95–97  ·  view source on GitHub ↗
(apiKey: string)

Source from the content-addressed store, hash-verified

93 * @returns string - The last 4 characters
94 */
95export function getApiKeyLast4(apiKey: string): string {
96 return apiKey.slice(-4)
97}
98
99/**
100 * Gets the display format for an API key showing prefix and last 4 characters

Callers 3

auth.test.tsFile · 0.90
formatApiKeyForDisplayFunction · 0.85
getEncryptedApiKeyLast4Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected