kopia lustrzana https://github.com/OpenDroneMap/NodeODM
12 wiersze
329 B
JavaScript
12 wiersze
329 B
JavaScript
const NoTokenRequiredAuth = require('./NoTokenRequiredAuth');
|
|
const SimpleTokenAuth = require('./SimpleTokenAuth');
|
|
|
|
module.exports = {
|
|
fromConfig: function(config){
|
|
if (config.token){
|
|
return new SimpleTokenAuth(config.token);
|
|
}else{
|
|
return new NoTokenRequiredAuth();
|
|
}
|
|
}
|
|
} |