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

Using Firebase with Prerendered Shiny Documents #56

Open
latlio opened this issue Apr 17, 2023 · 0 comments
Open

Using Firebase with Prerendered Shiny Documents #56

latlio opened this issue Apr 17, 2023 · 0 comments

Comments

@latlio
Copy link

latlio commented Apr 17, 2023

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

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

No branches or pull requests

1 participant