*** id: ce8cd5db-5702-4ef7-81ae-e94f60847191 title: checkPermissions slug: /js/reference/webrtc/check-permissions description: checkPermissions function in the WebRTC namespace. max-toc-depth: 3 ---------------- ### checkPermissions * `Const` **checkPermissions**(`name?`): `Promise` Asynchronously returns whether we have permissions to access the specified resource. Some common parameter values for `name` are `"camera"`, `"microphone"`, and `"speaker"`. In those cases, prefer the dedicated functions [checkCameraPermissions](/docs/browser-sdk/v3/js/reference/webrtc/check-camera-permissions), [checkMicrophonePermissions](/docs/browser-sdk/v3/js/reference/webrtc/check-microphone-permissions), and [checkSpeakerPermissions](/docs/browser-sdk/v3/js/reference/webrtc/check-speaker-permissions). #### Parameters Name of the resource. #### Returns `Promise` #### Example ```javascript await SignalWire.WebRTC.checkPermissions("camera"); // true: we have permission for using the camera ```