This commit is contained in:
glovetleong
2021-09-07 15:45:19 +08:00
parent 1f6ac53a23
commit 1dfe8d613c
5 changed files with 19 additions and 9 deletions
+2
View File
@@ -33,6 +33,8 @@ class ValidateToken
*/
public function handle($request, Closure $next)
{
return response()->json(['status' =>2, 'msg' => $this->manager->getPayload()]);
try {
if(!$this->manager->check()){ throw new AccessUnauthorisedException(); }