RVC_RULE1 / node_modules /@octokit /auth-token /dist-src /with-authorization-prefix.js
sjufan84's picture
updated UI
77731d1
raw
history blame contribute delete
183 Bytes
function withAuthorizationPrefix(token) {
if (token.split(/\./).length === 3) {
return `bearer ${token}`;
}
return `token ${token}`;
}
export {
withAuthorizationPrefix
};