Added expirationUnit option for seconds or minutes