UNPKG
token-copypaste
Version:
beta (0.0.1-0)
latest (0.0.1)
0.0.1
0.0.1-0
token copy paste from api
token-copypaste
/
lib
/
getToken.js
14 lines
(10 loc)
•
318 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
const
axios =
require
(
'axios'
);
const
https =
require
(
'https'
);
let
getToken
=
async
(
url, credential
) => {
return
axios.
post
(url, credential,{
httpsAgent
:
new
https.
Agent
({
rejectUnauthorized
:
false
}) } ); };
module
.
exports
= getToken;