错误,LcobucciJWTSignerInvalidKeyProvided:无法解析您的密钥 [英] Error, LcobucciJWTSignerInvalidKeyProvided: It was not possible to parse your key

查看:15
本文介绍了错误,LcobucciJWTSignerInvalidKeyProvided:无法解析您的密钥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望你一切都好.我正在使用 Oauth 护照 laravel,它在我以前的机器上运行良好,但我不得不切换机器.我的新机器有 php 8,我的 laravel 项目是 7.30.0 版本,我的 lcobucci/jwt 版本是 3.3.3.当我尝试在邮递员上点击注册路线时,我收到以下错误

I hope you are doing fine. I was working on Oauth passport laravel, it was working fine on my previouse machine but i had to switch machines.My new machine has php 8 and my laravel project is of 7.30.0 version and my lcobucci/jwt version is 3.3.3. When i try to hit register route on postman i get the following error

LcobucciJWTSignerInvalidKeyProvided:无法解析您的密钥,原因:在文件 C:UsersuserDocumentsGitHubmyprojectvendorlcobuccijwtsrcSignerInvalidKeyProvided.php第 17 行

LcobucciJWTSignerInvalidKeyProvided: It was not possible to parse your key, reason: in file C:UsersuserDocumentsGitHubmyprojectvendorlcobuccijwtsrcSignerInvalidKeyProvided.php on line 17

推荐答案

正如你在 https://packagist.org/packages/lcobucci/jwt#3.3.3,JWT 包官方不兼容 PHP 8.你应该升级到兼容版本(至少 v4),或者降级你的 PHP 版本到 v7

As you can see on https://packagist.org/packages/lcobucci/jwt#3.3.3, that JWT package is officially not compatible with PHP 8. You should upgrade it to a compatible version (at least v4), or downgrade your PHP version to v7

这篇关于错误,LcobucciJWTSignerInvalidKeyProvided:无法解析您的密钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆