transmit
transmit copied to clipboard
Authorizing channels doesn't work
Package version
latest
Describe the bug
transmit.authorizeChannel<{ id: string }>('users/:id', (ctx: HttpContext, { id }) => { return ctx.auth.user?.id === +id })
the ctx.auth is undefined so you cannot authorize clients. I don't know if we need to add the auth middleware but in the documentation is nothing about it.
Reproduction repo
No response