Level up your Authentication Strategies & Implementation

Get access to all lessons in this workshop.

Includes all 5 workshops + bonus:
Full Stack Foundations workshopProfessional Web Forms workshopData Modeling Deep Dive workshopAuthentication Strategies & Implementation workshopWeb Application Testing workshop+Interviews with Experts workshop

Full Stack Vol 1

Full Stack Vol 1

Loading price
Full Stack Vol 1
30-Day Money-Back Guarantee
Money Back Guarantee
includes
Workshops
  • Full Stack Foundations

  • Professional Web Forms

  • Data Modeling Deep Dive

  • Authentication Strategies & Implementation

  • Web Application Testing

  • BonusInterviews with Experts

Features
  • 5 Self-Paced Workshops

  • Lifetime Access

  • Customizable Invoice

  • Streaming 4K Video

  • 166 Interactive Exercises

  • Discord Community

  • English Transcripts & Subtitles

  • Progress Tracking

  • Completion Certificates

Current section: Protecting Routes 6 exercises
Problem

Creating Protected Routes

This exercise is part of Authentication Strategies & Implementation and can be unlocked immediately after purchase. Already purchased? Log in here.

Transcript

00:00 So, I'm logged in, it wouldn't make a lot of sense for me to go to login. Even though we don't have any links there, it'd be confusing. I've used apps that will allow you to go to the login screen even when you're logged in, and sometimes they accidentally navigate you there in some ways, and it's really annoying. I don't like that.

00:19 It's very confusing. So, the login page, probably not somewhere I should be able to go, as well as the onboarding page, the signup page. I shouldn't be able to go there either when I'm logged in. So, we're going to start doing protected routes, but we're going to start with the unauthenticated routes. I should go back to the homepage if I end up on one of these routes.

00:39 So that is your task. Make sure that if I'm logged in, send me to the homepage, and we're going to have you build a utility to make this easy. So, have at it and have a good time.