/ 一键登录 /
uni.login({
provider: "univerify",
univerifyStyle: {
fullScreen: true,
},
success: (res) => {
},
fail: (error) => {
console.log("error: " + JSON.stringify(error));
if (error.code != "30002") {
uni.showToast({
title: "一键登录失败",
icon: "none",
});
}
uni.closeAuthView(); // 关闭一键登录界面
},
});
0 个回复