Merge pull request #64 from AAVikings/master

Including aacloud id
This commit is contained in:
z@tOr authored and GitHub committed 2018-11-04 12:02:14 -03:00
commit a55e2417ca
2 files changed
+6

No files matched your search

+2
View File
@@ -12,3 +12,5 @@ KEYVAULT_API_URL=https://keyvault-api.advancedalgos.net/graphql
AUTH0_DOMAIN=auth0-domain
AUTH0_AUDIENCE=auth0-audience
AUTH0_ISSUER=auth0-issuer
AACLOUD_ID=aacloud-id
+4
View File
@@ -13,6 +13,10 @@ import logger from './logger'
async function getUserId (authId) {
try {
if(authId === process.env.AACLOUD_ID){
return authId
}
const userData = await axios({
url: process.env.GRAPHQL_API_URL,
method: 'post',