Unverified Commit 7747f1aa authored by Viral Solani's avatar Viral Solani Committed by GitHub

Merge pull request #365 from viralsolani/analysis-8Aj10B

Apply fixes from StyleCI
parents 37ad12d0 887c21f0
......@@ -83,6 +83,7 @@ class AuthController extends APIController
protected function respondWithToken($token)
{
return $token;
return response()->json([
'access_token' => $token,
// 'token_type' => 'bearer',
......
......@@ -76,7 +76,7 @@ class Kernel extends HttpKernel
*/
'access.routeNeedsRole' => \App\Http\Middleware\RouteNeedsRole::class,
'access.routeNeedsPermission' => \App\Http\Middleware\RouteNeedsPermission::class,
'jwt.auth' => GetUserFromToken::class,
'jwt.refresh' => RefreshToken::class,
'jwt.auth' => GetUserFromToken::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