``` npm install webrtc-frontend-library --save ```
npm install webrtc-frontend-library
npm install webrtc-frontend-library --save
`
---
Imports
Import the components and constants from the package into the file:
`
import { VideoChat, LS_WEBRTK_TOKEN_KEY } from 'webrtc-frontend-library'
`
#### Important
After logging the user into your application, you should set the access token in the local storage of the browser for the chat components:
`
localStorage.setItem(LS_WEBRTK_TOKEN_KEY, access_token)
`
After calling the function to refresh a token from your app, the new received token must be installed in local storage of the browser under the key LS_WEBRTK_TOKEN_KEY and returned from the function.
---
$3
`
import { VideoChat } from "chat-frontend-library";
roomId="roomId"
handleError={cbHandleError}
handleClose={cbHandleClose}
user_locale='user_locale'
/>
``