MCPcopy Create free account
hub / github.com/dwgx/WindsurfAPI / maskApiKey

Function maskApiKey

src/auth.js:1303–1308  ·  view source on GitHub ↗
(key = '')

Source from the content-addressed store, hash-verified

1301}
1302
1303export function maskApiKey(key = '') {
1304 const s = String(key || '');
1305 if (!s) return '';
1306 if (s.length <= 12) return `${s.slice(0, 4)}...`;
1307 return `${s.slice(0, 8)}...${s.slice(-4)}`;
1308}
1309
1310function accountUserStatusSummary(userStatus) {
1311 if (!userStatus) return null;

Callers 3

processWindsurfLoginFunction · 0.90
handleDashboardApiFunction · 0.90
publicAccountFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected