auths
objectreturn
or this.key = 'value'
, pass input data to your code viaparams
, and maintain state across executions with$checkpoint.async
(event, steps, auths) => {
}
const axios = require('axios')
const response = await axios({
url: `https://api.github.com/user`,
headers: {
Authorization: `Bearer ${auths.github.oauth_access_token}`,
},
})
return response.data
auths
objectreturn
or this.key = 'value'
, pass input data to your code viaparams
, and maintain state across executions with$checkpoint.async
(event, steps, auths) => {
}
const Octokit = require('@octokit/rest')
const octokit = new Octokit({
auth: auths.github.oauth_access_token
})
return (await octokit.users.getAuthenticated()).data