blob: b029863915134ba47097385f204d2d60ead4968c (
plain)
1
2
3
4
5
6
7
|
#!/usr/bin/env bash
# If no custom expiry set, do nothing
[ -z "${OAUTH_EXPIRED_TTL}" ] && exit
# Replace oauth expiry
sed -i "s/return \[/return \[\n'Api' => [\n'tokenExpiry' => 'PT${OAUTH_EXPIRED_TTL}S',\n],/g" "$1"
|