influxdata / influx-cli

CLI for managing resources in InfluxDB v2
MIT License
61 stars 22 forks source link

fix(signin): Check for all available cookies instead of the count #504

Closed TheiLLeniumStudios closed 1 year ago

TheiLLeniumStudios commented 1 year ago

Hi,

It is possible to have multiple cookies returned on a successful sign-in response, specially when it is running behind a reverse proxy etc. This PR fixes the issue by looking up the cookies that contain influxdb within the name (it works on both OSS and cloud) and using the value of that cookie instead of checking for cookie array size.