Skip to content

Commit d67db24

Browse files
feat: finalized oauth
1 parent 1f308af commit d67db24

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

frontend/.env.development

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
VITE_BACKEND_URL=http://localhost:8080
2-
VITE_GH_OAUTH_CLIENT_ID=
2+
VITE_GH_OAUTH_CLIENT_ID=Ov23liSSsyTFMsm1CT09

frontend/src/pages/OAuthPage.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default function OAuthPage() {
1616
if (response.status === 'success') {
1717
if ("token" in response.data) {
1818
auth.login(response.data["token"]);
19-
navigate('/admin');
19+
navigate('/');
2020
}
2121
else {
2222
setMessage("Authentication failed.");
@@ -30,7 +30,7 @@ export default function OAuthPage() {
3030

3131
useEffect(() => {
3232
if (auth.isAuthenticated) {
33-
navigate('/admin');
33+
navigate('/');
3434
} else {
3535
const urlParams = new URLSearchParams(location.search);
3636

@@ -50,4 +50,4 @@ export default function OAuthPage() {
5050
subtitle={awaitingResponse ? "Authenticating with the server, please wait." : message}
5151
/>
5252
)
53-
}
53+
}

0 commit comments

Comments
 (0)