question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Only make requests to *.rewards.brave.com endpoints after Rewards opt-in

See original GitHub issue

Description

Browser sometimes makes calls out to *.rewards.brave.com endpoints before user fully opts into Brave Rewards. For example, see https://github.com/brave/brave-site-specific-scripts/issues/41. Any *.rewards.brave.com requests should only occur if the user has pressed “Start using Brave Rewards” and generated a wallet. These calls can happen as a result of Greaselion or by clicking the BAT icon.

Requests are made to the following domains, for example:

  • api.rewards.brave.com
  • rewards.brave.com
  • grant.rewards.brave.com

Steps to Reproduce

Greaselion

  1. Fresh profile
  2. Go to reddit.com or another site with site-specific Greaselion scripts
  3. Check for calls to *.rewards.brave.com

Another way:

BAT icon

  1. Fresh profile
  2. Click on BAT icon
  3. Although Brave Rewards is still disabled (i.e., “Start using Brave Rewards” has not yet been pressed), check for calls to *.rewards.brave.com

Calls should be deferred until after the user has pressed “Start using Brave Rewards”.

Expected result:

No requests needed until after opt-in.

Task list

  • Content scripts/Greaselion case
  • Clicking on Brave Rewards panel/BAT icon in the URL bar
  • Clicking on in-line tipping button
  • Navigating to brave://rewards settings page

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
holow29commented, Aug 17, 2021

Potentially some more info: I restarted the browser and Utility: Bat Ledger Service was not running, and I didn’t see any calls to *.rewards.brave.com endpoints. However, when I went to brave://rewards to ensure everything was off, the ledger service started again and remained running. It seems like the ledger service should not start when simply visiting brave://rewards if ads/ac are off. Perhaps there needs to be a way to reset to the pre-opt-in state and maybe that will prevent the ledger service from starting automatically.

1reaction
Miyayescommented, Dec 1, 2022

Thanks. @PrivacyMatters In any case, we actually went for the stronger route, and we make no calls to rewards-related endpoints until the user explicitly opts in/enables Brave Rewards 😃.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Only make requests to *.rewards.brave.com endpoints after ...
Calls should be deferred until after the user has pressed "Start using Brave Rewards". Expected result: No requests needed until after opt-in. Task...
Read more >
Brave Rewards FAQ
Brave Rewards is a program that lets you earn tokens that you can use to redeem rewards or anonymously support the sites you...
Read more >
Brave taking too much personal data from Uphold
“Extreme”??? Seems like to transfer payouts from the Rewards program only one permission with Uphold should be needed:.
Read more >
How do I use Brave Rewards?
Any relevant Creator info is only downloaded after you've enabled Brave Rewards. Manage Rewards. Use the Rewards Settings page (brave://rewards) ...
Read more >
What is Brave Rewards? | Brave Browser
Earn tokens just for browsing. Use them for almost anything: Cash gift cards. Crypto. Tips to websites. And more.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found