[英]User-provided fields not returned upon parse-login
I'm using the Parse REST API
to login to my app (using the endpoint: https://api.parse.com/1/login ). 我正在使用Parse REST API
登录到我的应用程序(使用端点: https : //api.parse.com/1/login )。 According to the docs, I should, when I login receive all the user-provided fields, in other words, the custom fields for my User-object. 根据文档,我应该在登录时收到所有用户提供的字段,换句话说,就是我的用户对象的自定义字段。
From Parse Docs: 从“解析文档”中:
The response body is a JSON object containing all the user-provided fields except password. 响应主体是一个JSON对象,其中包含用户提供的所有字段 (密码除外)。 It also contains the createdAt, updatedAt, objectId, and sessionToken fields. 它还包含createdAt,updatedAt,objectId和sessionToken字段。
But I only receive the following: 但是我只收到以下内容:
{createdAt: "2015-01-28T20:21:23.554Z", objectId: "6Wg0lOKCww", sessionToken: "Mvgr5knHqnTfqlI6KqJBLSxBr", updatedAt: "2015-01-28T20:21:23.554Z", username: "testuser"}
Am I doing something wrong or understanding something wrong? 我是在做错事还是在理解错事? I would rather not have to query the Parse-server for additional data. 我宁愿不必向解析服务器查询其他数据。
Thank you! 谢谢!
Not sure if this was a bug in their system at the time, but it seems to work as intended now. 不确定这在当时是否是他们系统中的错误,但现在看来似乎可以正常工作。 Custom user fields are returned upon login (if they are not null/undefined). 自定义用户字段在登录时返回(如果它们不是null / undefined)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.