Skip to content

Commit c51ea3c

Browse files
committed
Updated docs for authenticate
1 parent 6332107 commit c51ea3c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,10 @@ pusher.trigger(channel, event, data, socketId);
116116

117117
### Authenticating private channels
118118

119-
To authorise your users to access private channels on Pusher, you can use the `auth` function:
119+
To authorise your users to access private channels on Pusher, you can use the `authenticate` function:
120120

121121
```javascript
122-
var auth = pusher.auth(socketId, channel);
122+
var auth = pusher.authenticate(socketId, channel);
123123
```
124124

125125
For more information see: <http://pusher.com/docs/authenticating_users>
@@ -136,7 +136,7 @@ var channelData = {
136136
twitter_id: '@leggetter'
137137
}
138138
};
139-
var auth = pusher.auth(socketId, channel, channelData);
139+
var auth = pusher.authenticate(socketId, channel, channelData);
140140
```
141141

142142
The `auth` is then returned to the caller as JSON.

0 commit comments

Comments
 (0)