matt1484 / bl3_auto_vip

Borderlands3 Auto VIP/Shift Code Redemption System
Apache License 2.0
81 stars 19 forks source link

Remove login redirect b/c the auth process immediately returns the sessionId #43

Closed squatto closed 2 years ago

squatto commented 2 years ago

The auth process immediately returns the sessionId instead of redirecting, so we...

  1. Check for the sessionId header instead of the login redirect header
  2. Remove the GET request to the login redirect URL

The code redemption process will then work:

Setting up . . . . . success!
Logging in as '*****@*****.***' . . . . . success!
Getting SHIFT platforms . . . . . success!
Getting previously redeemed SHIFT codes . . . . . not found.
Checking single SHIFT code 'KHWTB-3CBJB-6XWFZ-6B3BB-T5CCJ' . . . . . success!
Trying 'steam' SHIFT code 'KHWTB-3CBJB-6XWFZ-6B3BB-T5CCJ' . . . . . code already redeemed.
Trying 'xboxlive' SHIFT code 'KHWTB-3CBJB-6XWFZ-6B3BB-T5CCJ' . . . . . code already redeemed.
Trying 'psn' SHIFT code 'KHWTB-3CBJB-6XWFZ-6B3BB-T5CCJ' . . . . . code already redeemed.
Trying 'epic' SHIFT code 'KHWTB-3CBJB-6XWFZ-6B3BB-T5CCJ' . . . . . code already redeemed.
Exiting in 5 4 3 2 1

I've only tested this with a single code (using the -shift-code arg). I haven't tested the rest of the processes yet.

squatto commented 2 years ago

This project has been forked and updated to work with the latest auth as well as with Wonderlands codes: jauderho/bl3auto