Feb 11, 2017
0
Level 1
Tymon jwt-auth middlewars
I've setup Tymon jwt-auth Middlewares in my lumen project, i have some question regarding this implementation, as i see some Middlewares are registered in LumenServiceProvider like below : $this->app->routeMiddleware([ 'jwt.auth' => Authenticate::class, 'jwt.refresh' => RefreshToken::class, 'jwt.renew' => AuthenticateAndRenew::class, 'jwt.check' => Check::class, ]);
Why this Middlewares are registreed?should we use this Middleware in our routes? i've read some document regarding setup Tymon jwt-auth via lumen project, but there was no mention of this issue should we use this Middlewares? if we should not use in our route groups, so how tokens are refreshing?
Please or to participate in this conversation.