Skip to content

Commit

Permalink
Merge pull request #2 from derivita/maxage
Browse files Browse the repository at this point in the history
Fix maxage error
  • Loading branch information
ribrdb authored May 20, 2024
2 parents 87b867c + 983e4f8 commit 10c57d7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion auth/token_verifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -490,5 +490,7 @@ func findMaxAge(resp *http.Response) (*time.Duration, error) {
return &duration, nil
}
}
return nil, errors.New("Could not find expiry time from HTTP headers")
// fix "cache-control: private" issue
oneHour := 1 * time.Hour
return &oneHour, nil
}

0 comments on commit 10c57d7

Please sign in to comment.