Heatmanofurioso / ngx-avatars

Spiritual successor of HaithemMosbahi's ngx-avatar
MIT License
16 stars 11 forks source link

Authenticated image pipe #38

Open palmtreefrb opened 2 years ago

palmtreefrb commented 2 years ago

Seems I cannot use a pipe to fetch my image from api that requires jwt authentication. The "useHttpImgSrc" pipe adds bearer token to the request and sanitizes the image response. Is there a solution for this scenario? <ngx-avatars [src]="imageSrc | useHttpImgSrc" width="32">

Heatmanofurioso commented 2 years ago

Hi @palmtreefrb Thanks for opening up this issue. Could you clarify which library is that pipe from, so I can understand it a bit better, and provide some print of your issue?

Or, could you make a minimal reproducible example of your issue?