()
| 27 | const IP_B = '203.0.113.11'; |
| 28 | |
| 29 | function fixedImpl(): IAuthTokenService { |
| 30 | return { |
| 31 | _serviceBrand: undefined, |
| 32 | getToken: () => TOKEN, |
| 33 | isValid: async (candidate) => candidate === TOKEN, |
| 34 | }; |
| 35 | } |
| 36 | |
| 37 | function buildApp(limiter?: AuthFailureLimiter): FastifyInstance { |
| 38 | const app = Fastify({ trustProxy: true }); |