Skip to content

Commit

Permalink
git statuFix Twitter auth headers
Browse files Browse the repository at this point in the history
  • Loading branch information
emerick committed Jan 18, 2021
1 parent c21c10f commit fe3aba3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/brave_rewards/publisher/twitter/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ export const getAuthHeaders = () => {

export const hasRequiredAuthHeaders = () => {
return authHeaders['authorization'] &&
(authHeaders['x-csrf-token'] || authHeaders['x-guest-token'])
((authHeaders['x-csrf-token'] && authHeaders['x-twitter-auth-type']) ||
(authHeaders['x-csrf-token'] && authHeaders['x-guest-token']))
}

export const processRequestHeaders = (requestHeaders: any[]) => {
Expand Down

0 comments on commit fe3aba3

Please sign in to comment.