adonisjs / transmit

A Server-Sent-Event module for AdonisJS
MIT License
65 stars 4 forks source link

`authorizeChannel` cannot throw an error. #14

Closed Barbapapazes closed 5 months ago

Barbapapazes commented 6 months ago

Package version

0.2.3

Describe the bug

Hello,

I'm trying to authenticate my user within an authorizeChannel but throwing an error does not return false.

Reproduction repo

No response

Barbapapazes commented 6 months ago

Ok, I think there is a missing await at that line https://github.com/adonisjs/transmit/blob/main/providers/transmit_provider.ts#L45

Same for the beforeUnsubscribe.