Hey there!
I’ve got a RedwoodJS application built using dbAuth and I have a couple questions that I can’t find anything about in the docs.
- Is there a way to update the cookie’s expiration whenever a user makes a request, so that it only expires after the user has been inactive for some amount of time?
- Right now, whenever the cookie is expired, it just throws this error in the API and returns a 500:
Error: Exception in getAuthenticationContext: The
Authorizationheader is not valid.
Typically I would expect this to return a 401 or similar so that I could catch that in the web side and log out the user, but I don’t see a way to change this behavior. Is there any advice for this??