When using decode with noVerify, there's no point in passing the key because it's not going to be used. It would make sense if you could call decode(token) without passing a key, and it would decode the token without trying to verify it.
At the moment I have to do something like decode(token, 'dummy_key', true), which is a lot more verbose
When using
decodewithnoVerify, there's no point in passing the key because it's not going to be used. It would make sense if you could calldecode(token)without passing a key, and it would decode the token without trying to verify it.At the moment I have to do something like
decode(token, 'dummy_key', true), which is a lot more verbose