If you see this page, the X OAuth flow redirected successfully. Copy the FULL URL from your browser bar and paste it back to claude-code.
The code is in the query string, like ?code=XYZ&state=ABC.
?code=XYZ&state=ABC