1. 19
    Create an Admin User Hook using Remix to Verify Admin Users
    2m 43s
⚠️ 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
Share this video with your friends

Social Share Links

Send Tweet
Published 3 years ago
Updated a year ago

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.