Title: Twitter v2 OAuth 2.0: PKCE code_challenge parameter truncated
Description:
When attempting to authenticate with Twitter v2 using Nango's OAuth integration, the authorization URL is malformed. The code_challenge parameter is being truncated.
Expected Behavior:
Authorization URL should include: code_challenge_method=S256&code_challenge=[base64url_encoded_sha256_hash]
Actual Behavior:
Authorization URL shows: _lenge_method=S256 (the code_cha prefix is missing)
This causes Twitter to reject the request with 400 errors:
Failed to load api.twitter.com/1.1/ing/referrer.json — 400
Failed to load api.twitter.com/2/oauth_... — 400
Environment:
Nango Integration: twitter-v2
Auth Method: OAuth 2
Client Type: Confidential (Web App, Automated App or Bot)
Scopes: tweet.read, tweet.write, users.read, offline.access
Steps to Reproduce:
Configure Nango twitter-v2 integration with valid X OAuth credentials
Attempt to authenticate a user via nango.auth('twitter-v2')
Observe truncated PKCE parameters in authorization URL
Title: Twitter v2 OAuth 2.0: PKCE code_challenge parameter truncated
Description:
When attempting to authenticate with Twitter v2 using Nango's OAuth integration, the authorization URL is malformed. The code_challenge parameter is being truncated.
Expected Behavior:
Authorization URL should include: code_challenge_method=S256&code_challenge=[base64url_encoded_sha256_hash]
Actual Behavior:
Authorization URL shows: _lenge_method=S256 (the code_cha prefix is missing)
This causes Twitter to reject the request with 400 errors:
Failed to load api.twitter.com/1.1/ing/referrer.json — 400
Failed to load api.twitter.com/2/oauth_... — 400
Environment:
Nango Integration: twitter-v2
Auth Method: OAuth 2
Client Type: Confidential (Web App, Automated App or Bot)
Scopes: tweet.read, tweet.write, users.read, offline.access
Steps to Reproduce:
Configure Nango twitter-v2 integration with valid X OAuth credentials
Attempt to authenticate a user via nango.auth('twitter-v2')
Observe truncated PKCE parameters in authorization URL