Skip to content

Expire VPN order credentials

Stephen Donner edited this page Jan 20, 2023 · 5 revisions

Expire VPN-order credentials

Steps:

  1. install latest Brave Beta (or Release Candidate) build
  2. launch Brave
  3. purchase and configure a BraveVPN connection via account.bravesoftware.com
  4. quit Brave (disconnect from BraveVPN, if connected)
  5. download expire-tlv2-order.sh
  6. edit its path to be cd ~/Library/Application\ Support/BraveSoftware/Brave-Browser-Beta/ and save changes/exit
  7. chmod 0777 expire-tlv2-order.sh (to make it script-executable on macOS)
  8. ./expire-tlv2-order.sh
  9. if it succeeds, it'll return/exit silently
  10. you should now have the following files: Local\ State, Local\ State.new, and something like Local State.Thu Jan 19 21:34:18 PST 2023
  11. the last file w/timestamp is the original; Local\ State and Local\ State.new should be identical, as .new is copied over to replace the original Local\ State file
  12. launch Brave
  13. click on the VPN button in the browser toolbar

Actual Results:

  • prompts user to add BraveVPN macOS network config
  • after doing so, connects to BraveVPN

Expected Results:

Am expecting to see an appropriate "credentials have expired" message; see bottom note for more detail

Should this be the Edit payment method dialog? (Figma design)

===== Changes the script makes to Local\ State: =====

  • sets "expires_at" to be current date + 00:00:00 (is this the same as orders->expires_at to be yesterdays date from the testing doc?)
  • removes all unblinded_creds entries in the list which have a valid_to greater than today

According to the Manipulate SKUs State testing doc, line 11:

Start Browser, attempt to use VPN, you should not have any valid credentials and the order should be expired, this should cause us to be in expired state.