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