Skip to content

Commit

Permalink
Merge pull request #12 from BennyExtreme/main
Browse files Browse the repository at this point in the history
FIX: Login Error
  • Loading branch information
dylantheriot authored Jan 7, 2021
2 parents 0e5c217 + af307d0 commit e7318d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# The program is currently down (1/6/2021 5pm CST). A fix will be pushed out soon.
# VALORANT ELO TRACKER

Track and view your VALORANT elo with this web application. As of 12/26, the original site has been taken down.
Expand Down
6 changes: 3 additions & 3 deletions app/valApi.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def get_cookies(self):
data = {
'client_id': 'play-valorant-web-prod',
'nonce': '1',
'redirect_uri': 'https://beta.playvalorant.com/opt_in',
'redirect_uri': 'https://playvalorant.com/',
'response_type': 'token id_token',
'scope': 'account openid',
}
Expand All @@ -51,7 +51,7 @@ def get_access_token(self):
uri = r.json()['response']['parameters']['uri']
jsonUri = urllib.parse.parse_qs(uri)

access_token = jsonUri['https://beta.playvalorant.com/opt_in#access_token'][0]
access_token = jsonUri['https://playvalorant.com/#access_token'][0]

return access_token

Expand Down Expand Up @@ -91,4 +91,4 @@ def get_match_history(self):

jsonData = r.json()

return jsonData
return jsonData

0 comments on commit e7318d9

Please sign in to comment.