mapbox / Hecate

Fast Geospatial Feature Storage API
MIT License
252 stars 36 forks source link

Session Invalidation #191

Closed ingalls closed 4 years ago

ingalls commented 4 years ago

Context

At the moment, if a session cookie is set and invalid, it will block all calls to hecate, not redirecting the user to auth. This forces the user to go and manually delete the cookie before they are able to reauth.

This implements automatic session cookie clearing on any invalid auth attempt that uses a session cookie.

@lizziegooding or @mattciferri can I get a review and have you test/take it out?

Test Instructions

cc/ @ingalls

lizziegooding commented 4 years ago

Noting that I've added to the work @ingalls did to: