#611 fix wrong expiry time when generating authorized application id