Become a member
to unlock all features

    Restrict Access in Gatsby with Protected Routes


    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.