Skip to content

Commit 50196ff

Browse files
committed
Rename id to appId
1 parent 3b7a306 commit 50196ff

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const config = {
2-
id: "977f5f57-8936-4388-8eb0-00a512cf01cc",
2+
appId: "977f5f57-8936-4388-8eb0-00a512cf01cc",
33
base: "/",
44
api: "http://localhost:3000",
55
expert: "http://localhost:3000",

config.land.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const config = {
2-
id: "977f5f57-8936-4388-8eb0-00a512cf01cc",
2+
appId: "977f5f57-8936-4388-8eb0-00a512cf01cc",
33
base: "/ide",
44
api: "https://api-nucleoid-com-land.gentleflower-99ef02e0.eastus.azurecontainerapps.io",
55
expert:

config.live.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const config = {
2-
id: "977f5f57-8936-4388-8eb0-00a512cf01cc",
2+
appId: "977f5f57-8936-4388-8eb0-00a512cf01cc",
33
base: "/ide",
44
api: "https://api.nucleoid.com",
55
expert: "https://api.nucleoid.com",

src/containers/IDE/IDE.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ function IDE() {
9898
}
9999

100100
async function project(projectId) {
101-
const appId = config.id;
101+
const appId = config.appId;
102102
const { refreshToken } = storage.get("oauth.token");
103103

104104
return http

src/http/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const refreshAuthLogic = async (failedRequest) => {
1616
if (!refreshToken && !accessToken) {
1717
const code = await instance.getCodeFromGithub();
1818
tokenRefreshResponse = await instance.oauth({
19-
appId: config.id,
19+
appId: config.appId,
2020
code: code,
2121
redirect_uri: config.oauth.redirectUri,
2222
});

src/widgets/ProjectDialog/ProjectDialog.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ function ProjectDialog({ handleClose, open, setOpen }) {
307307
try {
308308
const code = await http.getCodeFromGithub();
309309
const response = await http.oauth({
310-
appId: config.id,
310+
appId: config.appId,
311311
code,
312312
redirectUri,
313313
grant_type: "authorization_code",

0 commit comments

Comments
 (0)