The fear of leaving home without your smartphone is a modern anxiety that plagues many of us. That’s about to get worse for people in three Chinese cities, where the smartphone will be even more important -- because the government is rolling out an electronic identity card inside Alibaba’s payment app.

The national identity card is a vital part of life in China. The Public Security Bureau issues a physical card to every citizen at the age of 16, which lists a person’s full name, gender, ethnicity, date of birth and permanent address, together with a color photo.

Without the card, it’s virtually impossible to get a driving license, open a bank account, check into hotels, purchase high-speed train tickets, or board flights.

Alibaba is adding digital IDs to its payment app in three cities. (Picture: Zhejiang Television)

Now Alibaba is introducing digital IDs for smartphone users in Quzhou, Fuzhou and Hangzhou, where the company’s headquarters is located. (Abacus is a unit of the South China Morning Post, which is owned by Alibaba.)

Alipay is a natural home for electronic IDs -- registering for the payment app already requires a real name and a valid identity card number. To create a digital ID, users can simply select “Web ID” under “Card Wallet” and scan their faces.

For people who use Alipay on iPhones, it uses Apple’s Face ID or Touch ID to verify their identity before showing a unique QR code that contains personal information.

Chinese media say the pilot program currently covers services such as pension fund enquiries, bus ticket purchases, and hotel check-ins.

Digital IDs are already in place in Tencent’s home province of Guangzhou, where the Alibaba rival is hosting the feature on its multi-purpose app WeChat.

In a separate move, China’s Ministry of Public Security issued 50,000 tiny chips called SIMeID in Gongqingcheng, a city in the southeastern province of Jiangxi. Each stores personal information on a physical chip attached to a SIM card like a sticker.

When SIMeID users shop online with their smartphones, the chip verifies their identity without having to send personal information to shopping sites. Authorities say the technology is designed to prevent data theft.

These chips can attach to SIM cards to hold personal data. (Picture: CCTV)

It's all part of China’s big push to use technology to monitor the world’s largest population.

Aside from virtual IDs, it's also building a massive face recognition database that it hopes can one day identify any one of its 1.3 billion citizens within seconds.

Similar technology is already being used by police in some cities. Recently, a fugitive was arrested in a concert attended by more than 50,000 people after computers spotted his face in security cameras.