Hi, I tried looking eveywhere but I couldn’t find anyone with a similar issue.
I am trying to verify the JWT token signature in my backend, signature comes from developer rig.
I got my secret from the backend and I am base64 decoding it, then I try to verify the signature using this library: https://github.com/lcobucci/jwt
Which, other than being recommended by jwt.io works pretty well, been using it for ages in all of my projects.
$token = (new Parser())->parse((string) AccessToken::readFromRequest($request)); $signer = new Sha256(); // Fails dd($token->verify($signer, base64_decode('mysecret=')));
Can someone point me to the right direction?