PHP JWT Token Invalid Signature

前端 未结 1 1611
生来不讨喜
生来不讨喜 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)
提交回复
热议问题