completionId: cgen-10d66016ca4a4b2fb99ffa4657b0bbd3
cgen-10d66016ca4a4b2fb99ffa4657b0bbd3
This commit is contained in:
parent
048954eae9
commit
29345ad3cf
1 changed files with 2 additions and 2 deletions
|
|
@ -24,10 +24,10 @@ export default function DiscordVerify() {
|
|||
const code = searchParams.get("code");
|
||||
|
||||
useEffect(() => {
|
||||
// If code in URL, auto-fill it
|
||||
// If code in URL, store it but don't verify yet (need user to be authenticated first)
|
||||
if (code) {
|
||||
setVerificationCode(code);
|
||||
handleVerify(code);
|
||||
// Don't call handleVerify here - wait for user authentication below
|
||||
}
|
||||
}, [code]);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue