Securing a Laravel API in 20 minutes with JWTs

Securing a Laravel API in 20 minutes with JWTs

Andrew Schmelyun

5 лет назад

78,398 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Andrew Schmelyun
Andrew Schmelyun - 06.01.2020 07:25

UPDATE FOR LARAVEL 6.0+:

I've seen a few comments about the above video not working in Laravel 6. There was a discussion and back-and-forth on the GitHub repo about this, and there seems to be a stable solution out there now. Run "composer require tymon/jwt-auth ^1.0.0" from your project root or update your composer file directly to reflect using version ^1.0.0 of tymon/jwt-auth.

Ответить
Zaqueu Orlando
Zaqueu Orlando - 05.10.2022 14:51

I am not getting it Please can you provide the soruce code cause i can see dumplecated auth folder i am its just confusing

Ответить
Hamaad Chaudhry
Hamaad Chaudhry - 26.09.2022 11:36

can we use this package for authentication of our private channels for Laravel websockets

Ответить
jayant rawat
jayant rawat - 24.09.2022 19:47

Just I out curiosity, I want to know why you didn't put the whole code, inside try, while creating post? I use to put whole things inside try and the catch if there any error. Any specific reason for that??

Ответить
Priana Saputra
Priana Saputra - 31.07.2022 15:17

Thanks

Ответить
Prashant Jani
Prashant Jani - 16.06.2022 12:30

can anyone tell me how auth()->attempt($creds) generated token?

Ответить
Arnab Chaudhuri
Arnab Chaudhuri - 28.05.2022 20:58

Thank you @Andrew, this is really helpful for new learners like me..

Ответить
tetricko
tetricko - 06.10.2021 15:59

how can i test the login and register apis in a view in laravel not just postman. i want to see a register and login page in blade.php thats works with the token too

Ответить
Sebastian Manuelli
Sebastian Manuelli - 23.09.2021 18:07

Awesome, thank you.

Ответить
Pratik Sheth
Pratik Sheth - 08.09.2021 05:51

tymon/jwt-auth is not compatible with php8. Can you advice any other jwt package?

Ответить
Premkant Sahu
Premkant Sahu - 06.07.2021 14:03

Getting
token:false
My credentials are fine...

Ответить
Rytis
Rytis - 30.06.2021 11:52

Bro we don't need to hear your keyboard.

Ответить
R N
R N - 14.06.2021 18:24

Awesome tutorial. Subscribed👍

Ответить
Medion Tamginskii
Medion Tamginskii - 04.05.2021 07:53

Nice Job!!! It was very helpfull!!!

Ответить
Dotnetist Enterprise
Dotnetist Enterprise - 24.04.2021 12:10

thanks

Ответить
Migfus Raws
Migfus Raws - 01.04.2021 06:20

If the token refresh, will it reset the expiration time?

Ответить
Aydın Küçükoğlu
Aydın Küçükoğlu - 17.02.2021 07:28

Great and perfect. Thank you

Ответить
Fadil Rahadiansyah
Fadil Rahadiansyah - 29.12.2020 20:26

this is i needed the most, need to make default guard web, but need API auth

thanks !

Ответить
Mahmoud Akoobah
Mahmoud Akoobah - 16.11.2020 17:11

Thx, Very helpful tutorial, and it's working on Laravel 8

Ответить
suresh kukumati
suresh kukumati - 14.11.2020 12:04

Thank you sir 👍

Ответить
asim abu sallam
asim abu sallam - 13.11.2020 12:35

thanks a lot

Ответить