MCPcopy Index your code
hub / github.com/InverseUI/InverseUI-Recorder / detectAuthMethod

Function detectAuthMethod

util/session_utils.js:149–155  ·  view source on GitHub ↗
(sessionData)

Source from the content-addressed store, hash-verified

147 * Check if localStorage contains authentication tokens
148 */
149export function detectAuthMethod(sessionData) {
150 if (!sessionData.localStorage) return [];
151
152 return Object.keys(sessionData.localStorage)
153 .filter(key => key.toLowerCase().includes('token') || key.toLowerCase().includes('auth'))
154 .map(key => ({ type: 'localStorage', key }));
155}
156

Callers 1

sendTrackToBackendFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected