Skip to content

Commit

Permalink
Merge pull request #52 from achmadhadikurnia/chore/update-configs
Browse files Browse the repository at this point in the history
Chore/update configs
  • Loading branch information
achmadhadikurnia authored Jul 6, 2024
2 parents 8feed9f + dbe0068 commit 53f172b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions config/siasn-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

return [

// Supported mode: "production", "training"
'mode' => env('SIASN_MODE', 'training'),

'apim' => [
Expand Down
4 changes: 2 additions & 2 deletions src/Helpers/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,15 @@ public static function getConst(): object
/**
* Get mode.
*/
public static function getApimTokenAge(): string
public static function getApimTokenAge(): ?int
{
return config('siasn-api.token_age.apim');
}

/**
* Get mode.
*/
public static function getSsoTokenAge(): string
public static function getSsoTokenAge(): ?int
{
return config('siasn-api.token_age.sso');
}
Expand Down

0 comments on commit 53f172b

Please sign in to comment.