1
0
Files
stale/node_modules/@octokit/auth-token/dist-src/auth.js
T

13 lines
274 B
JavaScript
Raw Normal View History

2020-05-15 15:25:57 -04:00
export async function auth(token) {
const tokenType = token.split(/\./).length === 3
? "app"
: /^v\d+\./.test(token)
? "installation"
: "oauth";
return {
type: "token",
token: token,
tokenType
};
}