(expected: string, actual: string)
| 23 | } |
| 24 | |
| 25 | function equalLengthStringsMatch(expected: string, actual: string): boolean { |
| 26 | if (expected.length !== actual.length) { |
| 27 | return false; |
| 28 | } |
| 29 | |
| 30 | let mismatch = 0; |
| 31 | for (let index = 0; index < expected.length; index += 1) { |
| 32 | mismatch |= expected.charCodeAt(index) ^ actual.charCodeAt(index); |
| 33 | } |
| 34 | |
| 35 | return mismatch === 0; |
| 36 | } |
| 37 | |
| 38 | function hasCallbackTokenSecret(secret: string | null | undefined): secret is string { |
| 39 | return typeof secret === 'string' && secret.trim().length > 0; |
no outgoing calls
no test coverage detected