Implement Auth Guards with Tokens throughout an Next.js App

Share this video with your friends

Send Tweet

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.