Skip to content

Commit

Permalink
doc: rename authorize method name in README (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
casperboone authored Nov 7, 2024
1 parent f86534a commit 91eec9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ You can mark a channel as private and then authorize the client to subscribe to

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

transmit.authorizeChannel<{ id: string }>('users/:id', (ctx: HttpContext, { id }) => {
transmit.authorize<{ id: string }>('users/:id', (ctx: HttpContext, { id }) => {
return ctx.auth.user?.id === +id
})
```
Expand Down

0 comments on commit 91eec9c

Please sign in to comment.