Commit 887c21f0 authored by Viral Solani's avatar Viral Solani Committed by StyleCI Bot

Apply fixes from StyleCI

parent 37ad12d0
...@@ -83,6 +83,7 @@ class AuthController extends APIController ...@@ -83,6 +83,7 @@ class AuthController extends APIController
protected function respondWithToken($token) protected function respondWithToken($token)
{ {
return $token; return $token;
return response()->json([ return response()->json([
'access_token' => $token, 'access_token' => $token,
// 'token_type' => 'bearer', // 'token_type' => 'bearer',
......
...@@ -76,7 +76,7 @@ class Kernel extends HttpKernel ...@@ -76,7 +76,7 @@ class Kernel extends HttpKernel
*/ */
'access.routeNeedsRole' => \App\Http\Middleware\RouteNeedsRole::class, 'access.routeNeedsRole' => \App\Http\Middleware\RouteNeedsRole::class,
'access.routeNeedsPermission' => \App\Http\Middleware\RouteNeedsPermission::class, 'access.routeNeedsPermission' => \App\Http\Middleware\RouteNeedsPermission::class,
'jwt.auth' => GetUserFromToken::class, 'jwt.auth' => GetUserFromToken::class,
'jwt.refresh' => RefreshToken::class, 'jwt.refresh' => RefreshToken::class,
]; ];
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment