inst/bookmark/app.R

library(shiny)
library(auth0)

ui <- function(request) {
  fluidPage(
    textInput("txt", "Enter text"),
    checkboxInput("caps", "Capitalize"),
    verbatimTextOutput("out"),
    bookmarkButton()
  )
}
server <- function(input, output, session) {
  output$out <- renderText({
    if (input$caps)
      toupper(input$txt)
    else
      input$txt
  })
}

enableBookmarking(store = "server")
shinyAppAuth0(ui, server)

Try the auth0 package in your browser

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

auth0 documentation built on March 31, 2023, 9:47 p.m.