我用的是和。
提供以下代码对用户进行身份验证。
firebase.auth().signInWithPopup(provider).then((result) => {
/** @type {firebase.auth.OAuthCredential} */
var credential = result.credential;
// This gives you a Google Access Token. You can use it to access the Google API.
var token = credential.accessToken;
//
我正在使用Jmeter进行API测试,我们有一个API请求,需要认证。
当我调用http://localhost:3001/city/latitude/longitude (GET方法)时,它返回User is not authorized。为了获得授权,您需要调用http://localhost:3001/user (POST方法),以json格式传递用户名。
那么,我怎样才能在http://localhost:3001/city/latitude/longitude上打一个授权电话呢?