Skip to content

dolbyio-samples/comms-sample-node-token-auth-firebase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

License

Blog Picture

Use Firebase Functions as Authentication Service

This repository will deploy a Firebase Function that will be used to generate an access token to initialize the SDK.

Overview

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.

Requirements

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.

Getting Started

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.

Report a Bug

In the case any bugs occur, report it using Github issues, and we will see to it.

Forking

We welcome your interest in trying to experiment with our repos.

Feedback

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!

Learn More

For a deeper dive, we welcome you to review the following:

About Dolby.io

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.

           
      Dolby.io on YouTube       Dolby.io on Twitter       Dolby.io on LinkedIn