jjzjj

HttpsError

全部标签

javascript - 抛出新功能。Firebase 云功能上的 https.HttpsError 被客户端拒绝为内部错误

我将以下CloudFunction部署到我的Firebase项目中:exports.createCredentials=functions.https.onCall((data,context)=>{if(!context.auth)thrownewfunctions.https.HttpsError('failed-auth','Youmustbeauthenticatedtocallthisfunction')const{email,password}=data;if(!(typeofemail==='string'))thrownewfunctions.https.HttpsEr