Duration
4 min
Access
Pro
Transcript
Available

To restrict access in rooms within our Gatsby application we'll need to modify the VideoDisplay component.

To authenticate a user, a useEffect will be run to check if there is a Twilio token stored in state. If not, the user will be redirected to the home page.