Cannot get user id in local/hosted test

Did you enable the “Request Identity Link” capability?