Bugfix for fees / Oauth 2 implementation
This commit is contained in:
15
helpers/oauthApi.js
Normal file
15
helpers/oauthApi.js
Normal file
@@ -0,0 +1,15 @@
|
||||
'use strict';
|
||||
|
||||
require('dotenv').config();
|
||||
const axios = require('axios');
|
||||
|
||||
const OAUTHUrl = process.env.ORD_OAUTH_URL;
|
||||
|
||||
const OAuthAPI = axios.create({
|
||||
baseURL: OAUTHUrl,
|
||||
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
|
||||
});
|
||||
|
||||
module.exports = {
|
||||
OAuthAPI,
|
||||
};
|
||||
Reference in New Issue
Block a user