Verified Commit d25b5c11 authored by Mehdi Baaboura's avatar Mehdi Baaboura
Browse files

Added $token to response in TokenController#verify for debug purposes

parent f91fc90a
......@@ -97,7 +97,8 @@ class TokenController extends APIController {
if (!$token->isExpired()) {
return $this->apiService->json([
"status" => "Token valid",
"user" => $this->apiService->serialize($user)
"user" => $this->apiService->serialize($user),
"token" => $token
]);
} else {
return $this->error("Token expired", Response::HTTP_FORBIDDEN);
......
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