(next)
| 1 | // Utilities to measure the authentication strategies |
| 2 | export const withTimer = (next) => { |
| 3 | return (req) => { |
| 4 | req.startTime = new Date().getTime() |
| 5 | return next(req) |
| 6 | } |
| 7 | } |
| 8 | |
| 9 | export const endTimer = (req) => { |
| 10 | req.endTime = new Date().getTime() |
no outgoing calls
no test coverage detected