Skip to content

Commit

Permalink
Retrieve csrf_token from GitHub ENV variable
Browse files Browse the repository at this point in the history
  • Loading branch information
seanprashad committed Mar 10, 2024
1 parent 8e655ba commit 74cc1b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cron/update_questions.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

def create_leetcode_api():
LEETCODE_SESSION_TOKEN = os.environ.get("LEETCODE_SESSION_TOKEN")
csrf_token = leetcode.auth.get_csrf_cookie(LEETCODE_SESSION_TOKEN)
csrf_token = os.environ.get("LEETCODE_CSRF_TOKEN")

configuration = leetcode.Configuration()

Expand Down

0 comments on commit 74cc1b8

Please sign in to comment.