diff --git a/env.example b/env.example index 06190a9..7367126 100644 --- a/env.example +++ b/env.example @@ -14,6 +14,7 @@ FIREBASE_MEASUREMENT_ID= FIREBASE_VAPID_KEY= #OAUTH Settings +OAUTH_APPLICATION_ID= OAUTH_CLIENT_ID= OAUTH_SECRET= OAUTH_TOKEN_URI=https://id.fabric.swire.io/oauth/token @@ -24,3 +25,5 @@ SESSION_SECRET= SUBSCRIBER_REFERENCE= SUBSCRIBER_PASSWORD= + +RELAY_HOST=relay.swire.io diff --git a/index.js b/index.js index 05a736a..f014ac4 100644 --- a/index.js +++ b/index.js @@ -25,7 +25,7 @@ const FIREBASE_CONFIG = JSON.stringify({ const token_request = { reference: process.env.SUBSCRIBER_REFERENCE, password: process.env.SUBSCRIBER_PASSWORD, - application_id: process.env.CLIENT_ID + application_id: process.env.OAUTH_APPLICATION_ID } const host = process.env.RELAY_HOST