Skip to content

Commit

Permalink
debug en prod
Browse files Browse the repository at this point in the history
  • Loading branch information
NextFire committed Apr 10, 2024
1 parent b3daef9 commit 54764be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions server/api/discord/callback.get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ export default eventHandler(async (event) => {
const session = await useTypedSession(event);
const redirect = session.data.redirect || "/";
const params = new URLSearchParams({ code });
console.log(session.data);
return sendRedirect(event, `${redirect}?${params}`);
});
1 change: 1 addition & 0 deletions server/routes/_oauth.get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export default eventHandler(async (event) => {
redirect: `http://${host}/_oauth`,
forwardAuthRedirect: `${proto}://${host}${uri}`,
});
console.log(session.data);
return sendRedirect(event, `${userConfig.publicUrl}/api/discord/auth`);
} else if (code) {
assert(typeof code === "string");
Expand Down

0 comments on commit 54764be

Please sign in to comment.