lib/authenticate.js
async function loadToken (url) {
  let tokens
  try {
    const data = await readFile(credentialsPath)
    tokens = JSON.parse(data)
  } catch (err) {}
  return tokens && tokens[url]
}
async function loadToken (url) {
  let tokens
  try {
    const data = await readFile(credentialsPath)
    tokens = JSON.parse(data)
  } catch (err) {}
  return tokens && tokens[url]
}
async function loadToken ( url ) { let tokens try { const data = await readFile ( credentialsPath ) tokens = JSON . parse ( data ) } catch ( err ) { } return tokens && tokens [ url ] }
Load the JWT for an Upload Server URL.
Load the JWT for an Upload Server URL .