Why do you surely need to use the default Auth of any framework?

Search for a command to run...

No comments yet. Be the first to comment.
In this series/category, I would share with you guys all of my exp and best practices, to build the awesome products
Hey folks, Have you ever heard about DB Clustering (eg MySQL Clustering)? If not, I would give you a quick summary of it. Before, I worked at a big company based in Munich, Germany (Still working in Vietnam tho haha). Oh boy, they do have a big monol...
Hey guys, An update after I posted the “Laravel Excel: How to append rows to an existing Excel file“ a while back. This post will give you another solution and probably a better way to export that fits every case. Problems Previously, when trying to ...

Hey guys, An easy topic for today! Make something a default (e.g., category, product, campaign, etc). Let’s go with the categories table for the examples. Let’s say we only want one category to be the default one. And find out which is the optimal wa...
Hey guys, Probably a chapter 2 of this https://sethphat.dev/why-is-wordpress-still-an-awesome-cms blog post, haha. Here was the story: I’ve been spending like 2 days figuring out which CMS I want to use for my new blog (for my new hobby lol) Let’s se...

Hey guys, Well damn, it has been a while since my last post lol, lazy & busy. But here I am, back to write useful tips for y’all 🥹 Let us do some exporting tasks for today, using Laravel Excel to export XLSX (yeah CSV is so 2010 lol). But, append mo...

Hey guys, Recently, I just bought Herd PRO (a yearly subscription). I’ve been using the basic Herd since the first release. So, my latest work required interaction with S3 storage, there are several ways to achieve that in the local env: Use Cloud (...

TLDR;
Fully tested and trusted by thousands of companies
Avoid reinventing the wheel
Save times
Basic terms, aren't they?
Authentication: give users access to our system.
Authorization: check if users can be able to use/access any part of the system.
From the outside world, in any framework from any language, the default built-in will always include:
Authentication module
Authorization module
For example: Laravel (PHP) has it, Spring (Java) has it,...
We have plenty of reasons to use the built-in modules of the framework. Let's list out the simple ones:
Save time
Avoid reinventing the wheel
Fully documented
Correct?
I've seen multiple projects that implement their own ways of doing authentication & authorization. And it is a big pain in the ass for maintaining (no documentation), newcomers have to learn things in the hard way.
Imagine you want to use a super cool and trendy framework which covers you up with hundreds of cool things, and yet you still create your own way. You don't utilize the best of the framework.
If you're working on a startup and follow that, congrats, not only it takes more time but also you make big tech debt at a later stage.
Let's continue with other items:
Fully unit tested
Battle-tested
Trusted by thousands of companies in the world
Bug-free (quick fix from communities as well)
Unit testing is a thing, yes. But I suppose 90% of projects out there are not covered by tests. Which are unsafe than using the built-in modules. Not to mention the "battle-tested".
By combining the full list, you can see why you need to use the built-in Authentication & Authorization. PROs are a lot.
You don't change the way how the framework work. You build cool things on top of the framework, and let the framework empower your projects.