1×
Become a member
to unlock all features
Autoplay

    Restrict Access in Gatsby with Protected Routes

    gatsbyGatsby
    >=2.15.7

    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.