umputun / remark42

comment engine
https://remark42.com
MIT License
4.77k stars 375 forks source link

Fix type for value for refresh token cache #1754

Closed paskal closed 3 months ago

paskal commented 3 months ago

It was set to string by mistake, and the proper type is token.Claims.

The bug was in action from 1313dee829ff781f20c6c5614473e2534a88bd30 from February 20 (unreleased, just in the master branch) and resulted in 500 error while calling /config endpoint due to the conversion failure:

[INFO]  request panic for /api/v1/config?site=remark42 from *.*.*.*, interface conversion: interface {} is token.Claims, not string