title: Protected Route With Firebase
body: <p>I used Firebase for User Auth in my Next.js Application. I want to protect a user on the client-side. I used firebase firebaseui react-firebaseUI to implement Google Auth. How to secure  a Route in the Client-side itself</p>
  <pre><code>  const uiConfig = {
      signInFlow: &quot;popup&quot;,
      signInSuccessUrl: &quot;/dashboard&quot;,
      signInOptions: [firebase.auth.GoogleAuthProvider.PROVIDER_ID],
    }
  </code></pre>
  <p>I want to protect the dashboard Route.
  Thanks in advance :)</p>