You are browsing as a guest. Sign up (or log in) to start making projects!

Open comments for this post

50m 8s logged

added a better way to handle required authentication!… middleware. yup, i am very creative. it’s practically a qol improvement in the development side, making code look a bit nicer without seeing in every single protected route the same 3 lines to check if the user is authenticated. now i can “enforce” it when I want the user to be reallly unauthenticated to use a route. to use it, you just “add the middleware and maybe move one flag” and that’s it… goddamit I should have had that before to not write a heck ton of “if not authenticated or if authenticated…”.

i am trying to delay the inevitable.. the need of making the oauth side and the frontend ;D

0
2

Comments 0

No comments yet. Be the first!