I just built a quick capacitor app from scratch and adding this to capacitor.config.json made possible in ios sim for a server connect to properly return the identity after an earlier login:
"server": {
"hostname": "your-server-domain"
}
Have to run now, but can try on device a bit later.