Skip to content

Using Firebase with Prerendered Shiny Documents #56

@latlio

Description

@latlio

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions