yetanalytics / lrsql

A SQL-based Learning Record Store
https://www.sqllrs.com
Apache License 2.0
91 stars 17 forks source link

SQL-231 catch token exceptions in no-val mode #369

Closed milt closed 9 months ago

milt commented 9 months ago

SQL-231 If no-val mode is used and no token is present or is malformed we can get an NPE and a 500 response. This change puts a try/catch around the token decoding code that leads to a 401 if there is not a valid token, rather than the 500.