Skip to content

incorrect rewards environment appears to be cached when attempting to connect to custodian #28550

Open

Description

Description

This is a problem likely unique to QA and perhaps development, not a problem that users are likely to face:

When you are connected to a custodian on staging environment and you accidentally launch the browser with production environment (not staging), you get logged out of the custodian which makes sense. If you try to login, you notice you're on production as expected so you close and relaunch w/ staging command line flags. However, after relaunching you cannot connect to custodian's sandbox as something appears to be caching the call to production.

Steps to Reproduce

  1. Clean profile, launch w/ staging command line flags
  2. Close/relaunch again w/ staging command line flags (not sure if necessary, but this pulls griffin seed)
  3. Join Rewards, link staging Uphold account
  4. Confirm successful (can see balance)
  5. Close browser
  6. Launch without staging command line flags
  7. See that I am logged out from Uphold (expected since Rewards is expecting Uphold sandbox, but is getting production)
  8. Click to login to uphold from panel or brave://rewards --> see production Uphold site (expected since I am not running with staging command line)
  9. Close Uphold tab
  10. Close browser
  11. Relaunch with staging command line flags
  12. Attempt to login to Uphold from panel or brave://rewards --> Still see production Uphold site but should see their sandbox site since I am now running with staging command line

Actual result:

Unable to reconnect to sandbox custodian

Expected result:

able to reconnect to sandbox custodian

Reproduces how often:

easily

Brave version (brave://version info)

1.48.x (@LaurenWags reproduced), 1.50.x (@MadhaviSeelam reproduced)

Version/Channel Information:

  • Can you reproduce this issue with the current release? yes
  • Can you reproduce this issue with the beta channel? unsure, likely yes
  • Can you reproduce this issue with the nightly channel? yes

Other Additional Information:

  • Does the issue resolve itself when disabling Brave Shields?
  • Does the issue resolve itself when disabling Brave Rewards?
  • Is the issue reproducible on the latest version of Chrome?

Miscellaneous Information:

cc @Miyayes

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions