github.com/jfrog/frogbot@v1.1.1-0.20231221090046-821a26f50338/action/node_modules/@octokit/auth-token/dist-src/hook.js (about) 1 import { withAuthorizationPrefix } from "./with-authorization-prefix"; 2 export async function hook(token, request, route, parameters) { 3 const endpoint = request.endpoint.merge(route, parameters); 4 endpoint.headers.authorization = withAuthorizationPrefix(token); 5 return request(endpoint); 6 }