Skip to content

Commit

Permalink
Default expiry to 10 years rather than 1
Browse files Browse the repository at this point in the history
  • Loading branch information
joce committed Jun 29, 2023
1 parent 169724a commit 113ecd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions finance.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ func fetchCookies() (string, time.Time, error) {
defer response.Body.Close()

var result string
// create a variable expiry that is one year in the future
var expiry = time.Now().AddDate(1, 0, 0)
// create a variable expiry that is ten years in the future
var expiry = time.Now().AddDate(10, 0, 0)

for _, cookie := range response.Cookies() {
var unixTime = cookie.Expires.Unix()
Expand Down

0 comments on commit 113ecd1

Please sign in to comment.