Prepare 1.8.6 release

This commit is contained in:
Nick Cipollo
2021-05-24 11:25:03 -04:00
parent d1125b4510
commit 880be3d0a7
442 changed files with 156407 additions and 1 deletions
+12
View File
@@ -0,0 +1,12 @@
export async function auth(token) {
const tokenType = token.split(/\./).length === 3
? "app"
: /^v\d+\./.test(token)
? "installation"
: "oauth";
return {
type: "token",
token: token,
tokenType
};
}