Skip to content

Commit

Permalink
fix: add http cookie for linkwarden integration
Browse files Browse the repository at this point in the history
  • Loading branch information
knrdl committed Feb 11, 2024
1 parent 249b6d8 commit dc6f39a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/integration/linkwarden/linkwarden.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ func (c *Client) CreateBookmark(entryURL, entryTitle string) error {
request.Header.Set("Content-Type", "application/json")
request.Header.Set("User-Agent", "Miniflux/"+version.Version)
request.AddCookie(&http.Cookie{Name: "__Secure-next-auth.session-token", Value: c.apiKey})
request.AddCookie(&http.Cookie{Name: "next-auth.session-token", Value: c.apiKey})

httpClient := &http.Client{Timeout: defaultClientTimeout}
response, err := httpClient.Do(request)
Expand Down

0 comments on commit dc6f39a

Please sign in to comment.