README.md

Authenticate Shiny users with [Google Firebase](https://firebase.google.com) [![Lifecycle: maturing](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://www.tidyverse.org/lifecycle/#maturing) ![R-CMD-check](https://github.com/JohnCoene/firebase/workflows/R-CMD-check/badge.svg) [![Travis build status](https://travis-ci.org/JohnCoene/firebase.svg?branch=master)](https://travis-ci.org/JohnCoene/firebase) [![AppVeyor build status](https://ci.appveyor.com/api/projects/status/github/JohnCoene/firebase?branch=master&svg=true)](https://ci.appveyor.com/project/JohnCoene/firebase) [Website](https://firebase.john-coene.com) | [Demo](https://shiny.john-coene.com/firebase) | [Reference](https://firebase.john-coene.com/reference/)

Authentication Methods

Currently the following methods from Google Firebase are available in the package:

Example

An application that provides authentication could look like this.

library(shiny)
library(firebase)

ui <- fluidPage(
  useFirebase(), # import dependencies,
  useFirebaseUI()
)

server <- function(input, output){
  f <- FirebaseUI$
    new()$ # instantiate
    set_providers( # define providers
      email = TRUE, 
      google = TRUE
    )$
    launch() # launch
}

shinyApp(ui, server)

Install

Install from Github using remotes:

# install.packages("remotes")
remotes::install_github("JohnCoene/firebase")

Related

Below are similar projects:

Code of Conduct

Please note that the firebase project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.



Try the firebase package in your browser

Any scripts or data that you put into this service are public.

firebase documentation built on March 31, 2020, 5:17 p.m.