Firebase token认证 “kid“ invalid, unable to lookup correct key

解码时,
use Firebase\JWT\JWT;
use Firebase\JWT\Key;
JWT::decode($jwt, $key, ['HS256']); 改为
JWT::decode($jwt,new Key($key,'HS256'));

https://blog.csdn.net/weixin_40367377/article/details/127371958?spm=1001.2101.3001.6650.3&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EYuanLiJiHua%7EPosition-3-127371958-blog-124890239.pc_relevant_landingrelevant&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EYuanLiJiHua%7EPosition-3-127371958-blog-124890239.pc_relevant_landingrelevant&utm_relevant_index=6

posted @ 2022-12-04 23:50  @菜鸟爱学习@  阅读(178)  评论(0编辑  收藏  举报