Closed mattrothenberg closed 2 years ago
I noticed that all of my requests were failing when I provided a PAT.
Upon closer inspection, we already apply the token prefix to our authentication header in @githubnext/utils, https://github.com/githubnext/utils/blob/main/src/lib/on-request-github-data.ts#L12. As such, this Bearer prefix seems unnecessary
token
@githubnext/utils
Bearer
@Wattenberger believe it or not, the template strings cast the value to a string! we could def do this more explicitly when we assign the env var, for clarity's sake
I noticed that all of my requests were failing when I provided a PAT.
Upon closer inspection, we already apply the
token
prefix to our authentication header in@githubnext/utils
, https://github.com/githubnext/utils/blob/main/src/lib/on-request-github-data.ts#L12. As such, thisBearer
prefix seems unnecessary