Skip to content

Commit 79d2c8e

Browse files
committed
fmt
1 parent 64ace59 commit 79d2c8e

File tree

3 files changed

+9036
-3119
lines changed

3 files changed

+9036
-3119
lines changed

packages/auth-services/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,4 @@ const litLoginServer = createLitLoginServer({
7070
});
7171

7272
await litLoginServer.start();
73-
```
73+
```

packages/auth-services/src/auth-server/middleware/apiKeyGate.express.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,10 @@ export const apiKeyGate =
2222
// lazy initialise redis based on cfg.redisUrl
2323
const url = cfg.redisUrl || process.env['REDIS_URL'];
2424
if (!url)
25-
return res
26-
.status(500)
27-
.json({
28-
error:
29-
'Redis configuration missing. API key tracking requires Redis to be configured.',
30-
});
25+
return res.status(500).json({
26+
error:
27+
'Redis configuration missing. API key tracking requires Redis to be configured.',
28+
});
3129
const client = getCachedRedisClient() || (await getRedisClient(url));
3230
const now = new Date();
3331
const trackingKey = `${now.getUTCFullYear()}-${now.getUTCMonth()}-${now.getUTCDate()}:${apiKey}`;

0 commit comments

Comments
 (0)