JWT Token Verification Returns Null

Hi @Teodor ,

I have created a JWT token (sign) but I need to verify it in a different SA . However, during the verification process, the result returned is null. I am expecting the result to be a boolean value, either true or false.

I have tried setting the JWT properties as follows:

NAME: verify
Token: jwt
Key: $_ENV.PRIVATE_KEY

and

NAME: verify
Token: jwt
Key: $_ENV.PRIVATE_KEY.decodeBase64()

Wappler 6.0.5
Php

However, each time the result turns out to be null.
thanks

bump

Has this problem been resolved?

I checked the method and it doesn't return a boolean but also should not return a null value. The method should return the payload if it is valid or throw an error if something is wrong like invalid signature or token is expired.

Yes, it should be like this, but I noticed that the method doesn't return the payload when it's valid. I wonder if I missed something? I need to check again.

For me it returns all the data if valid on NodeJS