Synced with lorestore openid login.