LouisL
Reactifluxβ€’4y agoβ€’
1 reply
Louis

Louis – 12-43 Jun 29

Does this seem like a sensible approach to managing authentication state?

I'm using Cognito via Amplify and have an authentication context that provides the user to the rest of the application. I need to perform side effects in the authentication context and on the page, so I'm exposing a React Query mutation from the context provider that facilitates this...

* CODE IN THREAD *

Thanks πŸ™‚
Was this page helpful?