Rolling your own auth is like the first big no no in application security. Unless you're an expert, leave it to the experts
Because we haven’t seen good frameworks at the user management level, I think, the mistakes made by the creators of that YT video are common in the industry.