Full Stack Authentication Angular & Laravel using JWT | Login & Register API | Part 1

preview_player
Показать описание
In this video you will learn about the backend of this Authentication process in Laravel. We have created a registration and login API with JWT. The registration process includes basic fields for creating new users in our database. Once the user is registered successfully the user will be able to login with a token that is generated by JWT that will protect the route. It will also check that if a user is registered successfully and email is duplicated it will show the message on our postman that you cant create duplicate emails. The email must be unique to register the form.

00:00 - Installation & Setting Up Environment for Laravel Application
02:25 - Register API & Response
16:00 - JWT Login Documentation
23:52 - Login API & Response

Documentation for JWT

Complete Angular & Laravel Full Stack CRUD Series

Complete Laravel API CRUD

#full_stack #angular #laravel #authentication
Рекомендации по теме
Комментарии
Автор

Hi, everything in this video works! just some changes to make it work with laravel 9: -composer require --->This command adds a package in the composer.json -add in the api.php the following /*post request for registration, login */
Route::post('register', [UserController::class, 'register']);
Route::post('login', [UserController::class, 'login']); -the claims() function is underlined in red but still everything in this video works. Thank you AB Nation Programmers!

victoria-exito
Автор

you helped me through my Final project, thanks a lot ♥

gharbiislem
Автор

Hi, HELP! I am using docker and the latest versions of everything...I got an error and now my project does not work. When I run "composer require tymon/jwt-auth" I get:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires tymon/jwt-auth ^0.5.12 -> satisfiable by tymon/jwt-auth[0.5.12].
- tymon/jwt-auth 0.5.12 requires illuminate/support ~5.0 -> found illuminate/support[v5.0.0, ..., 5.8.x-dev] but these were not loaded, likely because it conflicts with another require.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require tymon/jwt-auth:*" to figure out if any version is installable, or "composer require tymon/jwt-auth:^2.1" if you know which you need.
Installation failed, reverting ./composer.json and ./composer.lock to their original
content.

victoria-exito
Автор

Hi, could you do the same project with docker, Sanctum instead of JWT and the latest versions of Angular and Laravel? That would be cool because you explain VERY well! Thanks in advance!

victoria-exito
Автор

ill keep watching ur videos man, fcking great!

fernando
Автор

Hi guys, pls help me out... am having this bug

Error: Call to undefined method in file

annm
Автор

In this tutorial are you not using the CSRF?

gabrielegiustizieri
Автор

An advice. Before start working in the project to teach you should show how the project will looks like.

lserranoit
Автор

Hi, help, at the 30:08 I get an error (Undefined method 'claims') when I use auth()->claims([ Please help. Thank u

victoria-exito
Автор

hey sir, I am getting (Undefined type, I tried changing compose.json "tymon/jwt-auth": "^1.0.0" and after that composer update, but STIll getting the same Error please help

anouarmechri
Автор

help i get error undefined method 'claims'

laurencestacruz
Автор

i cannot use jwt in laravel anymore :(

mikha
Автор

Hi Guys, please assist. I am getting (Undefined type

samutech