montevideo-tech / hybrid-meetup-platform

Summer Camp WebRTC challenge. This project can be used to host and run hybrid meetups for the video community. Built by video-dev for video-devs 💚
Apache License 2.0
5 stars 2 forks source link

Refactor code in RedirectLoggedInUser and RequireAuth to avoid duplication #192

Open felipeYoungi opened 1 year ago

felipeYoungi commented 1 year ago

Currently, the code in the RedirectLoggedInUser and RequireAuth functions contains a lot of duplicated code, except for the redirect route. This duplication of code can lead to maintenance issues and make it difficult to maintain the codebase over time. Therefore, we need to refactor the code to avoid duplication.

The scope of this ticket includes: