I was wondering if anyone knew how to logout of both the composer rest server and a client application when using authentication and multi user server?
Background:
I have a client application running on localhost:6001
I have my composer rest server running in a docker container on localhost:3000
that has google authentication and multi user enabled.
I am currently logging in to both by setting up my server with this article and having in the COMPOSER_PROVIDERS
environment variable successRedirect='http://localhost:6001/auth/google'
which will start the logic for logging into my app with google from this youtube series.
The issue is when I logout of my app using req.logout
it logs out of my app, but not the composer rest server.
Does anyone know how to logout of both?
If I redirect to http://localhost:3000/auth/logout
then that logs out of the server but I don't want my client be redirected there; I want them to be redirected to my login page and subsequently be logged out of the rest server.
Thanks!