Course lesson

Implement Auth Guards with Tokens throughout an Next.js App

Now that we have user Authentication, we can redirect users to sign in if we don't find a cookie to do so.

Duration
3 min
Access
Free
Transcript
Retained from source evidence

Now that we have user Authentication, we can redirect users to sign in if we don't find a cookie to do so.

Throughout our app we can now replace our fauna token we have set in environment variables to the user token that we have access to.