(candidate: string)
| 69 | tokenPath, |
| 70 | getToken: currentToken, |
| 71 | isValid(candidate: string): boolean { |
| 72 | const tokenBuf = Buffer.from(currentToken()); |
| 73 | const candidateBuf = Buffer.from(candidate); |
| 74 | if (candidateBuf.length !== tokenBuf.length) { |
| 75 | return false; |
| 76 | } |
| 77 | return timingSafeEqual(candidateBuf, tokenBuf); |
| 78 | }, |
| 79 | async dispose(): Promise<void> { |
| 80 | // Persistent token: intentionally left on disk so it survives restarts. |
| 81 | }, |
no test coverage detected