After enter 6 digit code Upstox not open.
Invalid credentials usually result from discrepancies in client_id or redirect_uri. Ensure these values match those you provided during the app creation process.
client_id
redirect_uri.