七牛云获取token BUG "<PLEASE APPLY YOUR ACCESS KEY>:vZFWIoYmT........"
作者:互联网
官方 sdk是通过以下方式来设置 accessKey 和 secretKey
var accessKey = 'your access key'; var secretKey = 'your secret key'; var mac = new qiniu.auth.digest.Mac(accessKey, secretKey);
但是会得到以下token
<PLEASE APPLY YOUR ACCESS KEY>:vZFWIoYmT1R7kdOm_omQAdOK74k=:eyJzY29wZSI6Im5ibGl0eSIsImRlYWRsaW5lIjoxNTA1MDQwNTgyfQ==
通过v6的设置方式就可以解决
qiniu.conf.ACCESS_KEY = qiniuKey.accessKey; qiniu.conf.SECRET_KEY = qiniuKey.secretKey; let mac = qiniu.auth.digest.Mac();
问题方法转载于 GITHUB
标签:vZFWIoYmT,七牛云,accessKey,qiniu,secretKey,token,conf,var,your 来源: https://www.cnblogs.com/super-ldc/p/14271132.html