Open zhughes3 opened 4 years ago
Ok, I have something that looks like solution 2 implemented on my local computer. The problem is:
In both cases, its hard to truly know what the intent of the user is. Does the user want to create a timeline as an anonymous user or a logged in user? Regardless of the situation above, they will be able to click "Create Timeline" and continue after the 400 Bad Request. So regardless, I think we need to signal to the user whats going on...
We should talk about this more.
Scenario:
I am on the homepage as a signed-in user. I step away from my computer and come back.
At this point, I try to create a timeline. Currently, the backend parses the JWT access token, realizes that the token is expired and returns a 400 Bad Request.
Potential solutions: