Skip to content

Commit

Permalink
fix: endpoint for oauth
Browse files Browse the repository at this point in the history
  • Loading branch information
irisdv committed Sep 29, 2023
1 parent 3dd484e commit 33795a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/quests/questDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ const QuestDetails: FunctionComponent<QuestDetailsProps> = ({
if (task.verify_endpoint_type === "oauth_discord") {
const rootUrl = "https://discord.com/api/oauth2/authorize";
const options = {
redirect_uri: `${task.verify_endpoint}`,
redirect_uri: `${process.env.NEXT_PUBLIC_API_LINK}/${task.verify_endpoint}`,
client_id: process.env.NEXT_PUBLIC_DISCORD_CLIENT_ID as string,
response_type: "code",
scope: ["identify", "guilds"].join(" "),
Expand Down

0 comments on commit 33795a7

Please sign in to comment.