Skip to content

Commit 91eec9c

Browse files
authored
doc: rename authorize method name in README (#33)
1 parent f86534a commit 91eec9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ You can mark a channel as private and then authorize the client to subscribe to
9999

100100
import type { HttpContext } from '@adonisjs/core/http'
101101

102-
transmit.authorizeChannel<{ id: string }>('users/:id', (ctx: HttpContext, { id }) => {
102+
transmit.authorize<{ id: string }>('users/:id', (ctx: HttpContext, { id }) => {
103103
return ctx.auth.user?.id === +id
104104
})
105105
```

0 commit comments

Comments
 (0)