You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I thinking that just returning false would be good enough and will simplify the code of library users.
Instead of doing:
try {
if (!$token->verify($signer, $key) || !$token->validate($data)) {
// do something to tell that the token is unacceptable.
}
} catch (\BadMethodCallException$e) {
// do something to tell that the token is unacceptable.
}
Users could do:
if (!$token->verify($signer, $key) || !$token->validate($data)) {
// do something to tell that the token is unacceptable.
}
Any thoughts?
The text was updated successfully, but these errors were encountered:
I thinking that just returning
false
would be good enough and will simplify the code of library users.Instead of doing:
Users could do:
Any thoughts?
The text was updated successfully, but these errors were encountered: