firebase icon indicating copy to clipboard operation
firebase copied to clipboard

Sign out button disappears for a gmail user with bslib version 0.5.1

Open udurraniAtPresage opened this issue 1 year ago • 4 comments

I am not sure if this needs work from bslib or firebase but reporting here. My app server contains the regular firebase code for signing out, and the email and google login options:

server <- function(input, output, session) {

  # Firebase authentication ---------------------------------------------------
  f <- FirebaseUI$new(persistence = "local")$set_providers(
    email = TRUE,
    google = TRUE)$launch()

  # Sign out ----------------------------------------------------------------
  ## Button for signing out
  output$sign_out_button <- shiny::renderUI({
    f$req_sign_in()
    actionButton("signout", "Sign out")
  })

  ## User signs out when the button with ID "signout" is clicked
  observeEvent(input$signout, {
    f$sign_out()
  })
}

The sign out button does not appear if signed in with google. But it does appear if signed in with email.

> sessionInfo()
R version 4.3.1 (2023-06-16 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19045)

Matrix products: default


locale:
[1] LC_COLLATE=English_Canada.utf8  LC_CTYPE=English_Canada.utf8   
[3] LC_MONETARY=English_Canada.utf8 LC_NUMERIC=C                   
[5] LC_TIME=English_Canada.utf8    

time zone: America/Toronto
tzcode source: internal

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods  
[7] base     

other attached packages:
[1] shiny_1.7.5    firebase_1.0.2 bslib_0.5.1   

loaded via a namespace (and not attached):
 [1] jsonlite_1.8.7       dplyr_1.1.3          compiler_4.3.1      
 [4] promises_1.2.1       tidyselect_1.2.0     Rcpp_1.0.11         
 [7] later_1.3.1          jquerylib_0.1.4      fastmap_1.1.1       
[10] mime_0.12            R6_2.5.1             shinyjs_2.1.0       
[13] generics_0.1.3       jose_1.2.0           tibble_3.2.1        
[16] openssl_2.1.0        pillar_1.9.0         rlang_1.1.1         
[19] utf8_1.2.4           cachem_1.0.8         httpuv_1.6.12       
[22] sass_0.4.7           cli_3.6.1            magrittr_2.0.3      
[25] digest_0.6.33        rstudioapi_0.15.0    xtable_1.8-4        
[28] base64enc_0.1-3      askpass_1.2.0        lifecycle_1.0.3     
[31] vctrs_0.6.4          glue_1.6.2           fansi_1.0.5         
[34] tools_4.3.1          pkgconfig_2.0.3      ellipsis_0.3.2      
[37] htmltools_0.5.6.9001

udurraniAtPresage avatar Oct 31 '23 20:10 udurraniAtPresage