Use milliseconds for credentials.expiry_date