Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logout button is closing session and not redirecting to login page #73

Open
jtrecenti opened this issue Jun 30, 2020 · 2 comments
Open
Assignees
Labels
question Further information is requested

Comments

@jtrecenti
Copy link
Member

No description provided.

@jtrecenti jtrecenti added the bug Something isn't working label Jun 30, 2020
@jtrecenti jtrecenti self-assigned this Jun 30, 2020
@jtrecenti jtrecenti added question Further information is requested and removed bug Something isn't working labels Jun 30, 2020
@jtrecenti
Copy link
Member Author

It's not a bug.

When using shinyapps.io, we must tell that {shinyjs} package is required in order to make the logoutButton() work. As it is only a Suggestion, the app halts.

Example.

Works:

library(shinyjs)
ui <- shiny::fluidPage(auth0::logoutButton())
server <- function(input, output, session) { }
auth0::shinyAppAuth0(ui, server)

Does not work (when clicking logout)

ui <- shiny::fluidPage(auth0::logoutButton())
server <- function(input, output, session) { }
auth0::shinyAppAuth0(ui, server)

Maybe we should reconsider past decisions and put {shinyjs} to Imports again?

@JulianoAtto
Copy link

Hi,

I'm using {shinyjs} in Imports and my auth0::logoutButton() is causing "Disconnected from Server".

I'm using {golem} and added the dependency with the function usethis::use_package("shinyjs").

I'm also using shinyjs::useShinyjs() in the app_ui.R.

Is there any workaround?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants