Skip to content

Commit 74c9c22

Browse files
committed
change from Github App to OAuth App
1 parent 46bf708 commit 74c9c22

File tree

2 files changed

+26
-24
lines changed

2 files changed

+26
-24
lines changed

packages/gatsby-theme/config.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
type Config = {
2-
apiUrl: string;
3-
githubClientId: string;
4-
}
2+
apiUrl: string;
3+
githubClientId: string;
4+
};
55

66
const config: Config = {
7-
apiUrl: process.env.GATSBY_API_URL || "http://localhost:4000",
8-
githubClientId: process.env.GATSBY_GITHUB_CLIENT_ID || "Iv1.5345771c55b8eb37"
9-
}
7+
apiUrl: process.env.GATSBY_API_URL || 'http://localhost:4000',
8+
githubClientId: process.env.GATSBY_GITHUB_CLIENT_ID || '2f9502dd9f0f44ca2e3b',
9+
};
1010

11-
export default config;
11+
export default config;

packages/server/src/config.ts

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
11
export type Config = {
2-
github: {
3-
CLIENT_ID: string;
4-
CLIENT_SECRET: string;
5-
},
6-
jwt: {
7-
SECRET: string
8-
}
9-
};
10-
// https://github.com/login/oauth/authorize?client_id=Iv1.5345771c55b8eb37&redirect_uri=http://localhost:8000
2+
github: {
3+
CLIENT_ID: string
4+
CLIENT_SECRET: string
5+
}
6+
jwt: {
7+
SECRET: string
8+
}
9+
}
10+
// https://github.com/login/oauth/authorize?client_id=2f9502dd9f0f44ca2e3b&redirect_uri=http://localhost:8000
1111
const config: Config = {
12-
github: {
13-
CLIENT_ID: process.env.GQL_GITHUB_CLIENT_ID || "Iv1.5345771c55b8eb37",
14-
CLIENT_SECRET: process.env.GQL_GITHUB_CLIENT_SECRET || "19cef65a19b44c2c28e86f3969d83583cf071b02"
15-
},
16-
jwt: {
17-
SECRET: process.env.GQL_JWT_SECRET || "helloworld"
18-
}
12+
github: {
13+
CLIENT_ID: process.env.GQL_GITHUB_CLIENT_ID || '2f9502dd9f0f44ca2e3b',
14+
CLIENT_SECRET:
15+
process.env.GQL_GITHUB_CLIENT_SECRET ||
16+
'c89179109eec632c40ae3b589ed231497eb78cf1',
17+
},
18+
jwt: {
19+
SECRET: process.env.GQL_JWT_SECRET || 'helloworld',
20+
},
1921
}
2022

21-
export default config;
23+
export default config

0 commit comments

Comments
 (0)