微信小程序上线一段时间后,点击授权无法登录,报错:{errMsg: “getUserProfile:fail api scope is not declared in the privacy agreement”, errno: 112}
解决办法:
在小程序后台,设置,用户隐私保护指引,更新,添加获取用户头像,昵称权限。

参考链接:https://developers.weixin.qq.com/community/develop/doc/00084c7f9045c054f6a0bc87b61800