Pass browser cookies to dashboard variable

Is there any way to pass browser cookies to grafana dashboard and set them as dashboard variable?

Use case:

  1. When a user logs in, generate a custom cookie which is a user token in the background.
  2. Set this token as one of the dashboard variables.
  3. Use this dashboard variable token in all API calls for the data panels.
2 Likes