getIdToken()返回一个
Future-您必须
await实际获取令牌字符串:
var token = await FirebaseAuth.instance.currentUser().getIdToken();var response = await httpClient.get(url,headers: {'Authorization':"Bearer $token"});
欢迎分享,转载请注明来源:内存溢出
getIdToken()返回一个
Future-您必须
await实际获取令牌字符串:
var token = await FirebaseAuth.instance.currentUser().getIdToken();var response = await httpClient.get(url,headers: {'Authorization':"Bearer $token"});
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)