Including aacloud id
This commit is contained in:
1 parent
4ac01a38b6
commit
9843376a4b
2 files changed
+6
No files matched your search
@@ -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
|
||||
@@ -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',
|
||||
|
||||
Reference in new issue
Block a user