@live-change/linkedin-authentication-service 0.9.3 → 0.9.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/config.js ADDED
@@ -0,0 +1,17 @@
1
+ import App from '@live-change/framework'
2
+ const app = App.app()
3
+ import definition from './definition.js'
4
+
5
+ const {
6
+ clientId = process.env.LINKEDIN_CLIENT_ID,
7
+ clientSecret = process.env.LINKEDIN_CLIENT_SECRET
8
+ } = definition.config
9
+
10
+ definition.clientConfig = {
11
+ clientId
12
+ }
13
+
14
+ export default {
15
+ clientId,
16
+ clientSecret
17
+ }
package/linkedinClient.js CHANGED
@@ -7,10 +7,10 @@ const debug = Debug('services:linkedinAuthentication')
7
7
 
8
8
  import axios from 'axios'
9
9
 
10
- const config = definition.config
10
+ import config from './config.js'
11
11
 
12
- const linkedinClientId = config.clientId || process.env.LINKEDIN_CLIENT_ID
13
- const linkedinClientSecret = config.clientId || process.env.LINKEDIN_CLIENT_SECRET
12
+ const linkedinClientId = config.clientId
13
+ const linkedinClientSecret = config.clientSecret
14
14
  export { linkedinClientId, linkedinClientSecret }
15
15
 
16
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/linkedin-authentication-service",
3
- "version": "0.9.3",
3
+ "version": "0.9.4",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -21,9 +21,9 @@
21
21
  "url": "https://www.viamage.com/"
22
22
  },
23
23
  "dependencies": {
24
- "@live-change/framework": "^0.9.3",
25
- "@live-change/relations-plugin": "^0.9.3"
24
+ "@live-change/framework": "^0.9.4",
25
+ "@live-change/relations-plugin": "^0.9.4"
26
26
  },
27
- "gitHead": "79f98e67cb1a52a38ced5deb20b0d62d395313cb",
27
+ "gitHead": "98fd51a1a5fea3ff8adff3662ef1e4a00774eed6",
28
28
  "type": "module"
29
29
  }