PHP JWT Token Invalid Signature

前端 未结 1 1597
生来不讨喜
生来不讨喜 2020-12-21 10:59

I\'m searching for an hours now and can\'t find a solution to this problem.

This is the code to generate JWT token. I used https://github.com/firebase/php-jwt libra

相关标签:
1条回答
  • 2020-12-21 11:50

    Signature verification fails because you are not passing the correct secret key to https://jwt.io/ You need to pass the value of $secretKey from the PHP code. According to the screenshot you are passing string secret.

    0 讨论(0)
提交回复
热议问题