Revert OAuth redirect URI back to /api/discord/oauth/callback
cgen-35948b65c9634f1aa76987523fd1f80f
This commit is contained in:
parent
8ef1c8e6dd
commit
feefdafc8c
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ export default function handler(req: any, res: any) {
|
||||||
return res.status(500).json({ error: "Discord client ID not configured" });
|
return res.status(500).json({ error: "Discord client ID not configured" });
|
||||||
}
|
}
|
||||||
|
|
||||||
const redirectUri = `${process.env.VITE_API_BASE || "https://aethex.dev"}/discord`;
|
const redirectUri = `${process.env.VITE_API_BASE || "https://aethex.dev"}/api/discord/oauth/callback`;
|
||||||
|
|
||||||
// Get the next URL from query params (where to redirect after login)
|
// Get the next URL from query params (where to redirect after login)
|
||||||
const next = req.query.state || "/dashboard";
|
const next = req.query.state || "/dashboard";
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue