Replaced useRef with sessionStorage to prevent duplicate callback executions when component remounts (React Strict Mode). The ref was resetting on remount, causing the auth code to be used twice and triggering "code already used" errors. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| page.tsx | ||