Vue Authentication: API authentication with Laravel (2/12)

preview_player
Показать описание


Official site

Twitter
Рекомендации по теме
Комментарии
Автор

Thanks dude !
Thats the best explanation over the whole internet. Everything makes sense now !

gitamgadtaula
Автор

I get to @12:55, and i get the error Route [login] not defined. in file on line 420


Guessing its trying to automatically go to the login screen?

DrLobster
Автор

For those of you watching this video in 2021, I had to face a couple of issues:

First: You need to manually add the fully qualified namespace in router, like this:

Route::group(
[
'prefix' => 'auth',
'namespace' =>
],
function(){
Route::post('signin', 'SignInController');
Route::post('signout', 'SignOutController');

Route::post('me', 'MeController');
}
);

Second, for those who use ARC Advanced Rest Client and get Route [login] not found, remember to set this on ARC:

- Headers:

Header Name = Authorization, Header Value = Bearer token)
Header Name = Accept, Header Value = application/json

agenciadeviajesfantasytour
Автор

11:20 Why do I get this error instead of 200 OK?
"message": "Invalid value provided for claim [exp]", "exception": "Tymon\\JWTAuth\\Exceptions\\InvalidClaimException", "file":

leadit
Автор

For the Laravel8+ namespace must be 'namespace' => 'App\Http\Controllers\Auth' :D

vasilijestosic
Автор

Unfortunately, 'namespace' => 'Auth' didn't worked for me. So I found another way to define it in the docu:

() {
Route::post('singin', 'SignInController');
Route::post('singout', 'SignOutController');


Route::get('me', 'MeController');
});

serdar.d
Автор

thanks, Alex by the way what is the vscode theme you are using?

yusuphh.kajabukama
Автор

This is amazing. Any chance you can record future videos with a but higher resolution? Or increase your font size? It was a bit difficult to follow along. "=>" vs "->" was one that I stumbled on a few times.

ItsJamesMurray
Автор

thanks dude! much love from indonesia♥️🇮🇩

aqshalzakki
Автор

JWT Tokens have a certain expiration date right? When do you refresh those tokens? Or do you just have a TTL on the token that is high enough to not have to login every hour? Any recommendations?

julesvelomobile
Автор

Nice Tutorial, thanks for that, but one question: If single-page login is secure, why don't the big players do that?
Why do large players like Facebook or Amazon use a page reload to log in? Why don't they make it dynamic?

tenariusstuff
Автор

My token return boolean (true) not the token, how get the token? Help! I need token

camilohreina
Автор

Why I need this, is not enough with the laravel auth that comes with laravel --auth ?

JohnSmith-zlrz
Автор

in laravel 8 : i got error about JWDSubject. and solved. in v8 -user.php import this one manually . no auto import |use

yowomart
Автор

Hey mate, I've been look for an info as to how to store token. Do you know how can i get that info ?

beyondthenature
Автор

Great videos. It will be great it you record how use laravel passport with socialite and vue

marcinmaj
Автор

Just curious, what app do you use to create the database? It has a nice GUI

fazzyakamello
Автор

how to validate token first on mdidleware

ryan.aquino
Автор

"you can set the minutes to a week that you wanted to expire that or a month depending on your use case" -> no no no.. ttl should always be very very short. if you need to, there is the refresh token to be used. Never ever use a token ttl that is long. (see the oauth specifications for more info)

mr_don_key
Автор

Why don't you make some new/fresh videos?

DeTechDivus
visit shbcf.ru