(resourceParts: readonly string[])
| 11 | }; |
| 12 | |
| 13 | function encodeResourceParts(resourceParts: readonly string[]): string { |
| 14 | return resourceParts.map(part => `${part.length}:${part}`).join(''); |
| 15 | } |
| 16 | |
| 17 | function buildCallbackTokenMessage(params: Omit<CallbackTokenParams, 'secret'>): string { |
| 18 | return `callback:v1:${params.scope}:${encodeResourceParts(params.resourceParts)}`; |
no test coverage detected