From 7396da2ffd86778f3acc3564fe89e4da4667321f Mon Sep 17 00:00:00 2001 From: Achmad Hadi Kurnia Date: Sat, 6 Jul 2024 19:47:21 +0700 Subject: [PATCH 1/2] chore(configs): add info for supported mode --- config/siasn-api.php | 1 + 1 file changed, 1 insertion(+) diff --git a/config/siasn-api.php b/config/siasn-api.php index dc5d615..7adef47 100644 --- a/config/siasn-api.php +++ b/config/siasn-api.php @@ -2,6 +2,7 @@ return [ + // Supported mode: "production", "training" 'mode' => env('SIASN_MODE', 'training'), 'apim' => [ From dbe00686c13925b4e640e3d78936c079fd1c90ff Mon Sep 17 00:00:00 2001 From: Achmad Hadi Kurnia Date: Sat, 6 Jul 2024 19:58:51 +0700 Subject: [PATCH 2/2] chore(configs): fix miss match return type --- src/Helpers/Config.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Helpers/Config.php b/src/Helpers/Config.php index b57aff5..bf3640d 100644 --- a/src/Helpers/Config.php +++ b/src/Helpers/Config.php @@ -85,7 +85,7 @@ public static function getConst(): object /** * Get mode. */ - public static function getApimTokenAge(): string + public static function getApimTokenAge(): ?int { return config('siasn-api.token_age.apim'); } @@ -93,7 +93,7 @@ public static function getApimTokenAge(): string /** * Get mode. */ - public static function getSsoTokenAge(): string + public static function getSsoTokenAge(): ?int { return config('siasn-api.token_age.sso'); }