Skip to content

Commit bf36eaa

Browse files
committed
Allows for the cookie to be passed as an env variable
1 parent f0ed2a9 commit bf36eaa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/AdventOfCode.Commons/Configuration.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ public static class Configuration
88
/// <summary>
99
/// Your session cookie, if you want to retrieve your input from the internet
1010
/// </summary>
11+
///
1112
/// <remarks>
1213
/// To get your cookie, head to https://adventofcode.com/, then look into the cookies
1314
/// the website has set and paste its value here, it be something like <c>session:"[value]"</c>
1415
/// </remarks>
15-
public const string? CookieValue = null;
16+
public readonly static string? CookieValue = Environment.GetEnvironmentVariable("AOC_COOKIE");
1617
}

0 commit comments

Comments
 (0)