I'm currently working on implementing a dashboard in shiny. Previously I've used bokeh and created infrastructure for running that on AWS. I've used Cognito and the AWS ALB to do the authentication. For simplicity, I'd like to re-use this setup. Now I wonder how I can log users out. This is done by expiring the session cookie and redirecting the user to the logout url. In bokeh I set up a /logout URL which would clear the cookie and redirect the user.
Can this be done with shiny as well? I've seen there is e.g. 'cognitoR' package, but I'd like to keep it simple for now.