App signature added in all rest api

This commit is contained in:
Gowtham M 2025-12-02 17:53:11 +05:30
parent bc1f91acea
commit 42a1d53b01
2 changed files with 1 additions and 3 deletions

View File

@ -453,7 +453,7 @@ $routes->group("/api", ["filter" => "authJWT"], function ($routes) {
// $routes->post("employeeRest/createOrUpdateEmployeePolicySiAmount", "EmployeeRestController::createOrUpdateEmployeePolicySiAmount");
// $routes->post("employeeRest/calculatePremium", "EmployeeRestController::calculatePremium");
$routes->group("employeeRest", ['filter' => ['authJWT', 'appSignature'] ], function ($routes) {
$routes->group("employeeRest", ['filter' => ['appSignature' , 'authJWT'] ], function ($routes) {
// $routes->post("getVerifiedUserData", "RestAuthenticationController::getVerifiedUserData");

View File

@ -13,8 +13,6 @@ class VerifyAppSignature implements FilterInterface
// Get the header sent by the Flutter app
$clientSignature = $request->getHeaderLine('App-Signature');
dd($clientSignature);
// Load the server's expected signature from the .env
$validSignature = getenv('APP_SIGNATURE');