Skip to content

Commit adf6851

Browse files
committed
fix error in code snippet
1 parent f64a263 commit adf6851

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ Authentication in SendBird Desk is done by calling `SendBirdDesk.authenticate()`
3838
const sb = new SendBird({ appId : 'YOUR_APP_ID' });
3939
sb.connect(userId, accessToken, (res, err) => {
4040
if(err) throw err;
41-
SendBirdDesk.authenticate(userId, accessToken, (res, err) => {
41+
const desk = new SendBirdDesk();
42+
desk.authenticate(userId, accessToken, (res, err) => {
4243
if(err) throw err;
4344
// Now you can use Desk SDK later on
4445
});

0 commit comments

Comments
 (0)