Prettier format pending files
This commit is contained in:
parent
a895b741c4
commit
30c2c556a7
2 changed files with 5 additions and 3 deletions
|
|
@ -284,9 +284,11 @@ export default async function handler(req: any, res: any) {
|
|||
|
||||
// Discord is now linked! Redirect to login for user to sign in
|
||||
// The email is passed so they can see which account was linked
|
||||
console.log("[Discord OAuth] Discord linked successfully, redirecting to login");
|
||||
console.log(
|
||||
"[Discord OAuth] Discord linked successfully, redirecting to login",
|
||||
);
|
||||
return res.redirect(
|
||||
`/login?discord_linked=true&email=${encodeURIComponent(discordUser.email)}`
|
||||
`/login?discord_linked=true&email=${encodeURIComponent(discordUser.email)}`,
|
||||
);
|
||||
} catch (error) {
|
||||
console.error("[Discord OAuth] Callback error:", error);
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ export default function Login() {
|
|||
const [resetEmail, setResetEmail] = useState("");
|
||||
const [errorFromUrl, setErrorFromUrl] = useState<string | null>(null);
|
||||
const [discordLinkedEmail, setDiscordLinkedEmail] = useState<string | null>(
|
||||
null
|
||||
null,
|
||||
);
|
||||
const navigate = useNavigate();
|
||||
const location = useLocation();
|
||||
|
|
|
|||
Loading…
Reference in a new issue