Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/freeCodeCamp/freeCodeCamp
/ setupServer
Function
setupServer
api/src/plugins/auth.test.ts:13–18 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
11
import
auth from
'./auth.js'
;
12
13
async
function
setupServer() {
14
const
fastify = Fastify();
15
await
fastify.register(cookies);
16
await
fastify.register(auth);
17
return
fastify;
18
}
19
20
const
THIRTY_DAYS_IN_SECONDS = 2592000;
21
Callers
1
auth.test.ts
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected