pratikbaid3 / flutter_client_sse

Dart package to help consume SSE API. Consumes server sent events by returning parsed model of the event, id, and the data
https://pub.dev/packages/flutter_client_sse
MIT License
40 stars 41 forks source link

Token header #2

Closed aaumond closed 2 years ago

aaumond commented 2 years ago

Hi, The package is really useful. However, I find it unfortunate that the token is sent in the "Cookie" header. Depending on the usage needs, we may need to place the token in the "Authorization" header, for example. This aspect could be made configurable. Have a good day,

pratikbaid3 commented 2 years ago

Hi @aaumond. Thank you for your feedback. That is a really good suggestion. I'll make it so that any header can be passed with user-specified key.

aaumond commented 2 years ago

Hi @pratikbaid3, thanks for the feature!

skaba commented 2 years ago

Any updates here?

pratikbaid3 commented 2 years ago

@aaumond @skaba I have just pushed the change and the new version of package 1.0.0. you can update the package version to get the changes.

pratikbaid3 commented 2 years ago

@aaumond Closing this since the enhancement has been made. Thanks for the suggestion