File tree Expand file tree Collapse file tree 3 files changed +9036
-3119
lines changed
src/auth-server/middleware Expand file tree Collapse file tree 3 files changed +9036
-3119
lines changed Original file line number Diff line number Diff line change @@ -70,4 +70,4 @@ const litLoginServer = createLitLoginServer({
7070});
7171
7272await litLoginServer .start ();
73- ```
73+ ```
Original file line number Diff line number Diff 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 } ` ;
You can’t perform that action at this time.
0 commit comments