fix changing lifetime settings

to test, go to the apps portal settings page and change the lifetime/expiration value. Make sure the value actually gets changed.