danieleteti / delphimvcframework

DMVCFramework (for short) is a popular and powerful framework for WEB API in Delphi. Supports RESTful and JSON-RPC WEB APIs development.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TJWT.IsValidToken does not return an error string on invalid signature

DeddyH opened this issue · comments

My suggestion is to set the out-parameter "Error" to "Invalid token" at first. If all checks have been passed successfully, set it to an empty string. This would make the whole code shorter and cleaner due to only having 2 lines where this param is assigned a value.