joshcai / leetcode-sync

GitHub Action for syncing LeetCode submissions to GitHub
303 stars 61 forks source link

LeetCode Session Expiry #39

Open jaspinderkohli opened 1 year ago

jaspinderkohli commented 1 year ago

name: LeetCode Session Token Refresh about: Request to refresh the LeetCode session token for GitHub Actions workflow


Issue Description

Problem

After two weeks or roughy 13-14 days the action fails with the error Error: Request failed with status code 401 image

Current Configuration

LEETCODE_SESSION (which expires most probably has an expiry)

Potential Solutions

  1. Automate session refresh
  2. Check for expiration and notify
yogeshvar commented 1 year ago

@harpreetsingh91 That's a perfect solution. But for the automated session refresh, without storing the password. We can't get a new session in my understanding if you have any solutions to workaround this part. I will take up the automate session refresh :)