# Can I use my login data to chat?

**URL:** <https://community.sendbird.com/t/can-i-use-my-login-data-to-chat/280>\
**Category:** JavaScript\
**Created:** [May 18, 2020, 5:40am UTC](https://community.sendbird.com/t/can-i-use-my-login-data-to-chat/280 "2020-05-18T05:40:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![park](https://avatars.discourse-cdn.com/v4/letter/p/e79b87/32.png) [@park](https://community.sendbird.com/u/park)\
**Post date:** [May 18, 2020, 5:40am UTC](https://community.sendbird.com/t/can-i-use-my-login-data-to-chat/280/1 "2020-05-18T05:40:15Z")

</div>

I want to use Sendbird Chat for my web service.  
Server has users’ information like id and password.  
When user log in website, user use chat service by Sendbird Chat.  
In this case, I read quick start docs in homepage’s, in that sample I should type nickname and user then I can join the chat room.  
But, I want to use my user information and skip typing those.  
I mean when I log in web server, then chat service log in, too.  
I read docs and find user API. User API has only nickname, user name but no password.  
I think if I log in web service, then send this information to user list and get user name.  
Then, should I add password in user’s metadata and send this data in request for checking verification?  
Or something I can use user’s database like Active Directory?(I heard Sendbird can’t use AD)

---

<div class="post-metadata">

**Author:** ![Jason](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/jason/32/488_2.png) [@Jason](https://community.sendbird.com/u/Jason)\
**Post date:** [May 18, 2020, 5:44am UTC](https://community.sendbird.com/t/can-i-use-my-login-data-to-chat/280/2 "2020-05-18T05:44:34Z")

</div>

Hi there,

Please use an access token or session token and pass that in when you connect a user.

> **[Authentication | JavaScript Chat SDK Documentation | Sendbird](https://docs.sendbird.com/javascript/authentication#3_connect_to_sendbird_server_with_a_user_id_and_an_access_token)**
>
> In order to use the features of the Chat SDK for JavaScript in your client apps, a SendBird instance should be initiated in each client app through user authentication with Sendbird server. The instance communicates and interacts with the server...

---

<div class="post-metadata">

**Author:** ![park](https://avatars.discourse-cdn.com/v4/letter/p/e79b87/32.png) [@park](https://community.sendbird.com/u/park)\
**Post date:** [May 18, 2020, 5:59am UTC](https://community.sendbird.com/t/can-i-use-my-login-data-to-chat/280/3 "2020-05-18T05:59:09Z")

</div>

Oh… Thanks.  
I didn’t see that.
