Files
RCON-Action/node_modules/@octokit/auth-token/dist-src/auth.js
T
Lukas Scheuerle (Plagiatus) 66a0ed5fd8 I need to commit node modules
2021-03-15 22:57:49 +01:00

13 lines
274 B
JavaScript

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