Skip to content

Commit a907de8

Browse files
committed
Launchdarkly OAuth app and package
1 parent f18e3f8 commit a907de8

File tree

2 files changed

+28
-5
lines changed

2 files changed

+28
-5
lines changed
Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1+
import launchdarkly from "../launchdarkly/launchdarkly.app.mjs";
2+
13
export default {
2-
type: "app",
4+
...launchdarkly,
35
app: "launch_darkly_oauth",
4-
propDefinitions: {},
56
methods: {
6-
// this.$auth contains connected account data
7-
authKeys() {
8-
console.log(Object.keys(this.$auth));
7+
...launchdarkly.methods,
8+
getHeaders(headers) {
9+
return {
10+
"Content-Type": "application/json",
11+
...headers,
12+
"Authorization": `Bearer ${this.$auth.oauth_access_token}`,
13+
};
914
},
1015
},
1116
};
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "@pipedream/launch_darkly_oauth",
3+
"version": "0.0.1",
4+
"description": "Pipedream LaunchDarkly (OAuth) Components",
5+
"main": "launch_darkly_oauth.app.mjs",
6+
"keywords": [
7+
"pipedream",
8+
"launch_darkly_oauth"
9+
],
10+
"homepage": "https://pipedream.com/apps/launch_darkly_oauth",
11+
"author": "Pipedream <[email protected]> (https://pipedream.com/)",
12+
"publishConfig": {
13+
"access": "public"
14+
},
15+
"dependencies": {
16+
"@pipedream/platform": "^3.0.3"
17+
}
18+
}

0 commit comments

Comments
 (0)