I currently have a multi-site Craft 3 install with this in the general.php config file (amongst other settings)
return [
'*' => [
'defaultTokenDuration' => 259200, //72 hours
]
]
Which works fine for all sites allowing logged in users to remain logged in for 72 hours. I'm adding a new site where we need the duration to be 30 minutes.
I tried this:
return [
'*' => [
'defaultTokenDuration' => [
'*' => 259200, //72 hours
'otherSite' => 1800 //30 minutes
]
]
]
where 'otherSite' is the handle of the new site. Craft is throwing this error:
yii\base\InvalidConfigException: Unable to convert to seconds. in /Users/chad/Repos/gcx-craft/vendor/craftcms/cms/src/helpers/ConfigHelper.php:49
I also tried replacing the * with the handle of the primary site and saw the same error, so I assume listing all sites with a value in that array is useless. Is there any way to specify different values for different sites for this setting?