Hello dear adventurer, 25 hours of coding is a lot, and what I did is even more impressive. I started by playing with a database, sqlite to be exact. Then I realized it would fit really well into my project, and I’ve implemented it. It contains users (with emails, names, ids, password hashes and more). I also have tables, in the database, for custom permissions for specific users, or tables for user specific stetting or favorite servers. Then, I added JWT authentication AND authorization, which I did easily using @require_jwt_token, and getting the user id via userId=get_jwt_identity(), both imported from flask. Then, I switched the hole project over to gevent (from eventlet), which cleaned up some weird errors. After all of this, I tough it would be cool to add actual email verification, so I used Resend to send emails to the emails via my domain (I had one, and it was 100% worth the 7$/year). The registration was easy, but the implementation was a little harder. I still have chucks of code hardcoded for me, but I’ll defiantly remove them. After I did all of this, I found out that there is a library named Flask-Security-Too, which does everything I coded by hand: users database, email verification, authorization and authentication, refresh tokens, and much more, like password resetting, 2fa, etc… The next goals are to implement in the app Flask-Security-Too, and to add a feature to use one of my servers in the cloud for routing, so that when you start a Minecraft server, you can connect to it from the public. Thanks so much for reading.
P.S:You can drop me a follow!