How to get access_token for using chat?

Is this correct?
window.chatClient = new chatClient({
channel: ‘#xxxxxxxxxx’,
username: ‘pororia79’,
password: ’ ',
});