Загрузка...

Nuxt 3 Backend Authentication: JWT, RSA & MySQL Tutorial

👋 Hi there, I’m Soeng Souy (StarCode Kh)
🌱 Currently creating sample projects with Laravel, React, Vue, and Livewire
👯 Looking to collaborate on open-source PHP & JavaScript projects
💬 Ask me anything about Laravel, MySQL, or Flutter
⚡ Fun fact: I love turning ☕️ into code!

About This Video

Build a secure Nuxt 3 Authentication API using JWT and RSA-encrypted login with MySQL in this step-by-step tutorial.
Learn how to implement RSA encryption on the client-side to protect login credentials, and how to handle JWT authentication on the server-side for a fully secure login flow.

This video covers everything you need to create a modern, production-ready authentication system:
✔️ Setting up Nuxt 3 project and API routes
✔️ Generating RSA public/private keys
✔️ Encrypting login data on the frontend
✔️ Creating JWT tokens securely on the backend
✔️ Connecting with MySQL database
✔️ Protecting routes with JWT middleware
✔️ Handling user registration, login, and logout

Perfect for developers looking to build secure authentication systems with Nuxt 3, JWT, RSA encryption, and MySQL.

Full Code
[https://www.souysoeng.com/2025/12/nuxt-3-authentication-api-with-jwt-and.html]

▸|00:00:00|Introduction
▸|00:00:09|📌 Overview
▸|00:00:45|🧠 How Authentication Works
▸|00:01:23|✅ What This Tutorial Covers
▸|00:02:04|📦 Requirements
▸|00:02:31|1️⃣ Create Nuxt 3 Project
▸|00:03:42|2️⃣ Install Backend Dependencies
▸|00:04:09|3️⃣ Create Project Structure
▸|00:04:43|4️⃣ Configure .gitignore
▸|00:05:13|5️⃣ Environment Variables (.env)
▸|00:05:55|6️⃣ Database Setup (MySQL)
▸|00:07:06|7️⃣ Generate RSA Keys (OpenSSL)
▸|00:07:34|8️⃣ MySQL Connection (server/db/mysql.js)
▸|00:08:09|9️⃣ JWT Helper (server/utils/jwt.js)
▸|00:09:08|🔟 RSA Decryption Helper (server/utils/rsa.js)
▸|00:09:46|1️⃣1️⃣ Register API (server/api/auth/register.post.js)
▸|00:10:20|1️⃣2️⃣ Login API (server/api/auth/login.post.js)
▸|00:11:17|1️⃣3️⃣ JWT Middleware (server/middleware/auth.js)
▸|00:12:17|1️⃣4️⃣ Profile API (server/api/auth/profile.get.js)
▸|00:12:33|1️⃣5️⃣ Logout API (server/api/auth/logout.post.js)
▸|00:12:48|▶️ Run the Application
▸|00:13:16|Register (/api/auth/register)
▸|00:13:46|Login (/api/auth/login)
▸|00:15:05|Profile (/api/auth/profile)
▸|00:15:34|Logout (/api/auth/logout)
▸|00:16:05|✅ Production Best Practices
▸|00:16:41|🎯 Final Result

Follow Soeng Souy on:

► Subscribe for FREE: https://www.youtube.com/@laravelcrud
► Telegram: https://t.me/starcodekh
► Facebook page: https://www.facebook.com/starcodekh
► Website: https://souysoeng.com
► Fix Code: https://fixcodekh.com
► LinkedIn: https://www.linkedin.com/in/soengsouy
► Twitter: https://twitter.com/StarCodeKh

🙏 StarCode Kh :) Thank you for being so supportive!

#Nuxt3 #JWT #RSAEncryption #NuxtAuthentication #MySQL #FullStackDevelopment #WebDevelopment #JavaScript #StarCodeKh

Видео Nuxt 3 Backend Authentication: JWT, RSA & MySQL Tutorial канала 𝗦𝘁𝗮𝗿𝗖𝗼𝗱𝗲 𝗞𝗵
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять