Skip to content

Commit 7675fe9

Browse files
authored
Update callback.tsx
1 parent 51bcadc commit 7675fe9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/routes/callback.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,13 @@ function Callback() {
2828
'Accept': 'application/json',
2929
'Content-Type': 'application/json'
3030
},
31-
body: JSON.stringify({ code })
31+
body: JSON.stringify({
32+
code,
33+
client_id: import.meta.env.VITE_NCU_PORTAL_CLIENT_ID,
34+
client_secret: import.meta.env.NCU_PORTAL_CLIENT_SECRET,
35+
redirect_uri: 'https://ncuappteam.github.io/callback',
36+
grant_type: 'authorization_code'
37+
})
3238
});
3339

3440
const responseJson = await response.json();

0 commit comments

Comments
 (0)