transmit icon indicating copy to clipboard operation
transmit copied to clipboard

Authorizing channels doesn't work

Open radudalbea opened this issue 1 year ago • 0 comments

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

radudalbea avatar Oct 11 '24 13:10 radudalbea