firebase icon indicating copy to clipboard operation
firebase copied to clipboard

Using Firebase with Prerendered Shiny Documents

Open latlio opened this issue 1 year ago • 0 comments

Context on Prerendered Shiny Documents

I have a lightweight app that I've created using Prerendered Shiny Documents. From my understanding of how this works, you specify code normally placed in a ui.R file in a chunk with context="render" and code normally placed in a server.R file in a chunk with context="server"}

Integrating Firebase with Prerendered Shiny Documents

Using the most basic Firebase app example from John Coene's documentation, I try to specify the ui and server components in the prerendered Shiny document format as described above (see Reprex). The problem is I'm not seeing the authentication modal pop up with email and Google sign-in options. Any insights would be appreciated!

Reprex (copy in between quotes)

"```{r setup, include=FALSE, context="setup"} library(shiny) library(firebase)


"```{r, echo=FALSE, context="render"}
useFirebase()
firebaseUIContainer()
reqSignin(h4("Logged in!"))
```"

"```{r, context="server"}
FirebaseUI$
    new()$ # instantiate
    set_providers( # define providers
      email = TRUE, 
      google = TRUE
    )$
    launch() # launch

What I see when I render document

Screenshot 2023-04-16 at 9 08 46 PM

latlio avatar Apr 17 '23 01:04 latlio