Update OAuth start redirect URI
cgen-41743be5160343788135b99fb066c0a5
This commit is contained in:
parent
7f6fb19dae
commit
bb88f22021
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" });
|
||||
}
|
||||
|
||||
const redirectUri = `${process.env.VITE_API_BASE || "https://aethex.dev"}/api/discord/oauth/callback`;
|
||||
const redirectUri = `${process.env.VITE_API_BASE || "https://aethex.dev"}/discord`;
|
||||
|
||||
// Get the next URL from query params (where to redirect after login)
|
||||
const next = req.query.state || "/dashboard";
|
||||
|
|
|
|||
Loading…
Reference in a new issue