This repository will deploy a Firebase Function that will be used to generate an access token to initialize the SDK.
In this blog post, you will learn how to leverage Google Firebase Functions to create a secure authentication service using Node.js (with TypeScript) that can be utilized by the Dolby.io Interactivity API SDKs for Android, iOS, and JavaScript. The focus is on implementing security best practices, and it showcases the Enhanced Conference Access Control feature of Dolby.io, enabling you to configure permissions for users joining conferences.
To start out, you will need access to a Dolby.io account to utilize the Communications API, familiarity with Google Firebase, a development environment set up with Node.js and TypeScript, and knowledge of web development + JavaScript. A basic understanding of authentication concepts and practices would be good too.
Install the Firebase Tools on your machine using the following npm command (Node.JS):
npm install -g firebase-tools
Log the CLI into Firebase:
firebase login
Create a folder where you want to have your code and initialize your project with the following command:
firebase init
You will be asked what you want to set up in this folder, select Functions: Configure and deploy Cloud Functions. If you already have a Firebase project, select Use an existing project. Select the language you want to use to write the Cloud Function. I will provide you the code in TypeScript. Use ESLint to have a clean TypeScript code, then install the dependencies with NPM.
In the case any bugs occur, report it using Github issues, and we will see to it.
We welcome your interest in trying to experiment with our repos.
If there are any suggestions or if you would like to deliver any positive notes, feel free to open an issue and let us know!
For a deeper dive, we welcome you to review the following:
- Communications API
- Getting Started with Web SDK
- How-to Authenticate Users with Auth0 for Secure Dolby.io Video Calls
- What is Bokeh? How-to Add Privacy Filters for WebRTC Video Chat
- Transcribing Dolby.io Communications Recordings with Deepgram
Using decades of Dolby's research in sight and sound technology, Dolby.io provides APIs to integrate real-time streaming, voice & video communications, and file-based media processing into your applications. Sign up for a free account to get started building the next generation of immersive, interactive, and social apps.