Skip to content

How to get the session cookie  #1

@wimglenn

Description

@wimglenn

Puzzle inputs differ by user. For this reason, you can't get your data with an unauthenticated request. Here's how to get your session cookie for aocd to use:

  1. Login on AoC with github or whatever
  2. Open browser's developer console (e.g. right click --> Inspect) and navigate to the Network tab
  3. GET any input page, say adventofcode.com/2016/day/1/input, and look in the request headers.

It's a long hex string. Export that to an environment variable AOC_SESSION. Or, if you prefer more persistence, you can write it to a plain text file at ~/.config/aocd/token.

aocd_cookie

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions