We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7585366 commit 41cb566Copy full SHA for 41cb566
src/user.js
@@ -983,11 +983,13 @@ module.exports = function(AV) {
983
* 仅在小程序中可用。
984
*
985
* @since 2.0.0
986
- * @return {AV.User}
+ * @param {Object} [options]
987
+ * @param {boolean} [options.failOnNotExist] If true, the login request will fail when no user matches this authData exists. (since v3.7.0)
988
+ * @return {Promise.<AV.User>}
989
*/
- loginWithWeapp() {
990
+ loginWithWeapp(options) {
991
return getWeappLoginCode().then(code =>
- this.loginWithAuthData({ code }, 'lc_weapp')
992
+ this.loginWithAuthData({ code }, 'lc_weapp', options)
993
);
994
},
995
0 commit comments