clowdr-app / clowdr

Midspace (formerly Clowdr) is a completely open-source virtual conference platform. Host complex events with hundreds of authors and presenters. Midspace includes automated livestreams, video chat, text chat, randomised networking and much more.
https://www.midspace.app/
GNU Affero General Public License v3.0
59 stars 20 forks source link

Handle expired and otherwise invalid auth tokens #405

Open EdNutting opened 2 years ago

EdNutting commented 2 years ago

The ignored error at services/auth/src/hasura.ts:64 shouldn't be ignored.

E.g. Expired auth tokens are resulting in requests being auth'd with the role "unauthenticated" instead of passing an error back to the frontend to tell the user to refresh. That's what seems to be causing all the random failed queries.