Sign in
apache
/
airflow-JamesIves-github-pages-deploy-action
/
e45a9df141a41608e93a4240c430861d897a989b
/
.
/
node_modules
/
@octokit
/
auth-token
/
dist-src
/
auth.js
blob: 2d5005c22fc14ee2b1053be013449dd516ea2f9e [
file
] [
log
] [
blame
]
export
async
function
auth
(
token
)
{
const
tokenType
=
token
.
split
(
/\./
).
length
===
3
?
"app"
:
/^v\d+\./
.
test
(
token
)
?
"installation"
:
"oauth"
;
return
{
type
:
"token"
,
token
:
token
,
tokenType
};
}