Skip to content

Commit

Permalink
X-Twitter-User should always be true
Browse files Browse the repository at this point in the history
  • Loading branch information
emerick committed Jan 18, 2021
1 parent 2ee650c commit 675bc91
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/brave_rewards/publisher/twitter/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ export const processRequestHeaders = (requestHeaders: any[]) => {
}
}

// For our purposes (authentication), we want this always to be 'yes'
if (headers['x-twitter-active-user'] !== 'yes') {
headers['x-twitter-active-user'] = 'yes'
}

if (commonUtils.areObjectsEqualShallow(authHeaders, headers)) {
return false
}
Expand Down

0 comments on commit 675bc91

Please sign in to comment.