I'm using a custom authentication using cookies, and it seems that every time loglevel-plugin-remote receives a 401 error after sending a log (due to expired cookie, for example), it stops sending all future logs entirely, even after the cookie becomes refreshed. The only way to make it start sending again is to refresh the whole webapp.
I know that onUnauthorized gets called when this happens, but how to actually tell it that authorization is fine again? Returning true or false doesn't seem to make any difference.
I'm using a custom authentication using cookies, and it seems that every time
loglevel-plugin-remote
receives a 401 error after sending a log (due to expired cookie, for example), it stops sending all future logs entirely, even after the cookie becomes refreshed. The only way to make it start sending again is to refresh the whole webapp.I know that
onUnauthorized
gets called when this happens, but how to actually tell it that authorization is fine again? Returningtrue
orfalse
doesn't seem to make any difference.