json([ 'data' => $currentUser ]); } else { return Response()->json([ 'error' => 'Unauthorized', 'userFacingMessage' => 'You are not authorized to perform this request.' ]); } // Not sure how we'd get here, but just in case return Response(null, 400); } }