⚠️ This lesson is retired and might contain outdated information.

Create an Admin User Hook using Remix to Verify Admin Users

Kent C. Dodds
InstructorKent C. Dodds

Social Share Links

Tweet

We have an admin button but we really only want to show that if the user is logged in as an admin. Using our env variable from the last lesson, we can check to see if the user is an admin or not to be able to display that button.