Sign in
bazel
/
continuous-integration
/
cebc329df1747cee415cf94031b29fb2980f8bbc
/
.
/
actions
/
bcr-pr-review-notifier
/
node_modules
/
@octokit
/
auth-token
/
dist-src
/
with-authorization-prefix.js
blob: 02a4bb5ebaa623e1bb05b7ae3f9b393df895ae65 [
file
] [
log
] [
blame
]
function
withAuthorizationPrefix
(
token
)
{
if
(
token
.
split
(
/\./
).
length
===
3
)
{
return
`
bearer $
{
token
}`;
}
return
`
token $
{
token
}`;
}
export
{
withAuthorizationPrefix
};